Hello,
i would make a screeny with C++ from a minimized window.
WM_Print or PrintWindow. Witch function is better?
How can i use it? I must read out the DCHandle from the window for the fuction, or? How can i do this?
Hello,
i would make a screeny with C++ from a minimized window.
WM_Print or PrintWindow. Witch function is better?
How can i use it? I must read out the DCHandle from the window for the fuction, or? How can i do this?
I don't think that it is possible to capture a minimized window ...
No Printer/Screen, no DC ...
Greetz
Greenhorn
it must be possible.
Like there: http://img66.imageshack.us/img66/4598/10142175eg4.jpg
Ah, now I know what you wanna do ...
You wanna do it like Visual Tooltip ...
[HINT]
As you can see the screenshots were taken just before minimizing the window
[/HINT]
Greetz
Greenhorn
aha, thanks.
Can i minimized and maximized _other_ windows? Like paint or firefox? WM_Minimized is the false func, or?
Yes, it is possible to do that.
Take that as your main window proc and test it ...
Code:LRESULT CALLBACK WindowProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_CREATE: PostMessage(FindWindow("Shell_TrayWnd", NULL), WM_COMMAND, 415, 0); break; case WM_DESTROY: PostQuitMessage (0); break; case WM_NCDESTROY: PostMessage(FindWindow("Shell_TrayWnd", NULL), WM_COMMAND, 416, 0); break; default: return DefWindowProc (hwnd, message, wParam, lParam); } return 0; }