Click here to Skip to main content
16,010,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: child windows z-order Pin
User 665812-Dec-02 6:48
User 665812-Dec-02 6:48 
GeneralRe: child windows z-order Pin
mihan_12-Dec-02 7:16
mihan_12-Dec-02 7:16 
Questionhow to delete Win NT system start-up option Pin
woonkop12-Dec-02 2:37
woonkop12-Dec-02 2:37 
AnswerRe: how to delete Win NT system start-up option Pin
RobJones12-Dec-02 4:24
RobJones12-Dec-02 4:24 
GeneralLast question....atleast for a while!! Pin
Autunmsky12-Dec-02 1:23
Autunmsky12-Dec-02 1:23 
GeneralTAPI Application Pin
vin12-Dec-02 0:47
vin12-Dec-02 0:47 
GeneralRe: TAPI Application Pin
Michael P Butler12-Dec-02 0:58
Michael P Butler12-Dec-02 0:58 
QuestionHow does IShellDispatch4.ToggleDesktop minimize an app. without closing its modal dialog box ? Pin
Andrew Webb12-Dec-02 0:30
Andrew Webb12-Dec-02 0:30 
I'd like to programmatically minimize my app. while displaying a modal dialog box, without the dialog box being closed. All attempts to do this cause the modal box to be force-closed. However, the "Show Desktop" button (which calls IShellDispatch4.ToggleDesktop) can do it! How does ToggleDesktop do what it does ?

From an analysis of the messages that are sent to my main window by ToggleDesktop, I'd say it is calling ShowWindow with the SW_SHOWMINNOACTIVE parameter. So I wrote a little stand-alone app. to do exactly this. It finds the main window in my proper app., and calls ShowWindow (hWnd, SW_SHOWMINNOACTIVE), passing in the main window's HWND.

When minimized either way (ToggleDesktop or my little app.), the messages that are received by my main window are identical. The messages themselves, the order, the parameters... all is identical. And yet the behaviour is different: ToggleDesktop manages to minimze an app. without it exiting a modal state.

How ?!

TIA

GeneralSetRedarw().. Pin
Neha12-Dec-02 0:30
Neha12-Dec-02 0:30 
GeneralRe: SetRedarw().. Pin
PDStone12-Dec-02 0:58
PDStone12-Dec-02 0:58 
GeneralRe: SetRedarw().. Pin
Neha12-Dec-02 1:05
Neha12-Dec-02 1:05 
GeneralRe: SetRedarw().. Pin
PDStone12-Dec-02 1:25
PDStone12-Dec-02 1:25 
GeneralRe: SetRedarw().. Pin
Neha12-Dec-02 3:58
Neha12-Dec-02 3:58 
GeneralLaunching an exe from a service Pin
PDStone11-Dec-02 23:05
PDStone11-Dec-02 23:05 
GeneralRe: Launching an exe from a service Pin
dan o12-Dec-02 4:59
dan o12-Dec-02 4:59 
GeneralContext help button in titlebar Pin
rrrado11-Dec-02 22:01
rrrado11-Dec-02 22:01 
GeneralRe: Context help button in titlebar Pin
KaЯl12-Dec-02 4:45
KaЯl12-Dec-02 4:45 
GeneralMFC or .NET (or both?) Pin
Patje11-Dec-02 21:30
Patje11-Dec-02 21:30 
GeneralRe: MFC or .NET (or both?) Pin
Christian Graus11-Dec-02 21:37
protectorChristian Graus11-Dec-02 21:37 
GeneralRe: MFC or .NET (or both?) Pin
Kannan Kalyanaraman11-Dec-02 21:55
Kannan Kalyanaraman11-Dec-02 21:55 
GeneralRe: MFC or .NET (or both?) Pin
Patje11-Dec-02 22:55
Patje11-Dec-02 22:55 
GeneralRe: MFC or .NET (or both?) Pin
Michael P Butler11-Dec-02 22:02
Michael P Butler11-Dec-02 22:02 
GeneralRe: MFC or .NET (or both?) Pin
retZ12-Dec-02 4:51
retZ12-Dec-02 4:51 
GeneralAbout the LPPicture Usage:caused the AsynFilt.dll Exception Pin
clausphisou11-Dec-02 21:00
clausphisou11-Dec-02 21:00 
QuestionHow can check my window is gone out of the screen? Pin
Neha11-Dec-02 19:07
Neha11-Dec-02 19:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.