News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Parent window is hiding

Started by TNick, August 03, 2006, 09:38:47 AM

Previous topic - Next topic

savage

Maybe just send a SetFocus to the main window when the child window is closed?

TNick

Sorry for this delay.

savage: SetFocus doesn't work  :(
But I think it may work for replacing the EnableWindow function. Anyway, this is not a practical solution if you are creating a large aplication, with many diffrent "modal" windows.

tenkey: I see now that you are right
QuoteWith several applications launched, the parent window only goes behind one window.
But I can swear that another times it was the last.
About CreateThread-ExitThread: (Win32.hlp)
QuoteThe thread execution begins at the function specified by the lpStartAddress parameter. If this function returns, the DWORD return value is used to terminate the thread in an implicit call to the ExitThread function


Thanks for your posts anyway. In the end, we will find the answer! ... I hope  :8)

TNick

Just want to remind to all posters that I'm still in trouble with this!!!!! :boohoo:

dancho

DialogBoxParam example:

Download-Link: http://rapidshare.de/files/28798269/DBox.7z.html

***RadASM dialog as main project***


TNick

The answer is, of course, <<INVOKE   SetForegroundWindow,hWndMain>>.
:)