|
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!
|
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
|
Yeah it works. thank you.
Just curious, how do I press OK or Cancel on that dialog box programmatically?
thanks!
|
|
|
|
|
|
Hi,
Does anyone know of a C++ class hierarchy tool? I need to document and analyze the structure of a large application.
Thanks,
Royce
|
|
|
|
|
You could try Doxygen.
Steve
|
|
|
|
|
Hi, Windows don't come with a "make" utility and I have just downloaded this project with makefile I need to compile. Any pointer? Thanks.
|
|
|
|
|
Visual studio comes with a tool called "nmake".
Steve
|
|
|
|
|
|
I would like my newly window to open up with the given sizes. The following code maximizes the window when it gets created. Why doesn't it work? Thanks!
STARTUPINFO stStartUpInfo;
PROCESS_INFORMATION pProcessInfo;
memset(&stStartUpInfo, 0, sizeof(STARTUPINFO));
stStartUpInfo.cb = sizeof(STARTUPINFO);
stStartUpInfo.dwFlags = STARTF_USESIZE;
CreateProcess(NULL, CmdLine, NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS,
NULL, NULL, &stStartUpInfo, &pProcessInfo);
|
|
|
|
|
Look like the following is missing:
stStartUpInfo.wShowWindow = SW_MAXIMIZE;
Your code looks like it would show the window hidden as it memsets the struct to zero and 0 is SW_HIDE.
Steve
|
|
|
|
|
The window does show up but it's maximized. That's not what I want. I want the window size to be set to what I defined for dwXSize and dwYSize .
|
|
|
|
|
Try this:
STARTUPINFO si;
ZeroMemory(&si, sizeof(si));
si.cb sizeof(si);
si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USEPOSITION | STARTF_USESIZE;
si.wShowWindow = SW_SHOWNORMAL;
si.dwX = 0;
si.dwY = 0;
si.dwXSize = 100;
si.dwYSize = 100;
Steve
|
|
|
|
|
It still maximizes the window. Ryan (below) mentioned that application can ignore the STARTUPINFO struct if it wants to. So is there no way around this?
|
|
|
|
|
Before I started to look for ways around it I would verify the code with notepad (an application that respects it, I think) or something. I can't think of any easy way around it. You could install a WM_CBT hook with the SetWindowsHookEx API but this would involve setting a global hook (and thus creating a DLL and taking care that it doesn't crash or effect other applications).
Steve
|
|
|
|
|
An application is free to ignore the values in the STARTUPINFO structure if it wants to.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
My application scrolls data in real-time over several columns using a CListCtrl (MSVC++ 6.0). I'd like to occasionally put a user-message that takes up the entire row, spanning all the columns in the table. The MFC Grid Control doesn't seem to have this feature (hint hint).
Does anyone know if this has been done? Thanks!
Eric
----------------------------------------
Please reply in the forum--email is filtered
|
|
|
|
|
Eric Jacobsen wrote: The MFC Grid Control doesn't seem to have this feature (hint hint).
Which implies that a list control certainly doesn't!
Can you embed an Excel sheet into the application?
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Yes, the Excel functionality is just what I'm thinking of, but I think embedding an Excel sheet would probably be overkill
|
|
|
|
|
You could subclass the control and put code in to draw to text manually (just the "full line" text).
Steve
|
|
|
|