33 bool m_hasPrintWindow;
48 bool PrintWindow(HWND hWnd, HDC hdc,
bool isClientOnly =
true)
51 if ( m_hasPrintWindow )
55 typedef BOOL (WINAPI* P_PrintWindow)(HWND, HDC, UINT);
57 r = !! pw()(hWnd, hdc, isClientOnly ? 1 : 0);
62 m_hasPrintWindow =
false;
65 if ( ! m_hasPrintWindow )
67 UINT message = isClientOnly ? WM_PRINTCLIENT : WM_PRINT;
68 WPARAM wParam =
reinterpret_cast<WPARAM
>(hdc);
69 LPARAM lParam = PRF_CLIENT | PRF_NONCLIENT | PRF_OWNED | PRF_CHILDREN;
70 r = !! ::SendMessage(hWnd, message, wParam, lParam);
void OnCatch(void) const
[表示] 内容表示
CWindowPrinter(void)
コンストラクタ
bool PrintWindow(HWND hWnd, HDC hdc, bool isClientOnly=true)
[描画] ウィンドウ描画.