WM_CLOSE to Desktop
-
I get the "Shut down windows" dialog when I press Alt+F4 on the desktop, with all the other application windows minimized. To do this programmatically, which window is this that I should send WM_CLOSE to? thanks!
-
I get the "Shut down windows" dialog when I press Alt+F4 on the desktop, with all the other application windows minimized. To do this programmatically, which window is this that I should send WM_CLOSE to? thanks!
I think it should be "Progman".
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:
-
I get the "Shut down windows" dialog when I press Alt+F4 on the desktop, with all the other application windows minimized. To do this programmatically, which window is this that I should send WM_CLOSE to? thanks!
Yeah this works...
HWND hprg = ::FindWindow(_T("Progman"), NULL); ::SendMessage(hprg, WM_CLOSE, 0,0);
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:
-
Yeah this works...
HWND hprg = ::FindWindow(_T("Progman"), NULL); ::SendMessage(hprg, WM_CLOSE, 0,0);
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:
Yeah it works. thank you. Just curious, how do I press OK or Cancel on that dialog box programmatically? thanks!
-
Yeah it works. thank you. Just curious, how do I press OK or Cancel on that dialog box programmatically? thanks!
You can use spy++ to find that out.
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:
-
I think it should be "Progman".
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:
progman is no more the shell its just an app now ;)
-
progman is no more the shell its just an app now ;)
Yeah you are right prakash. But still that is what he asked for.
Owner drawn Jesus Loves
-
Yeah you are right prakash. But still that is what he asked for.
Owner drawn Jesus Loves
humm yeah, didnt realise that progman is still there as a window. may be it is there for some compatiblity issues. Someone rated u down :) i will offset that.
-
humm yeah, didnt realise that progman is still there as a window. may be it is there for some compatiblity issues. Someone rated u down :) i will offset that.
Mr.Prakash wrote:
that progman is still there as a window. may be it is there for some compatiblity issues.
Yeah it acts as the parent for the desktop.
Owner drawn Jesus Loves