Can you force a modal dialog to be topmost?

"Angus Comber" <angus-v2qo0/[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <F39E32FE8F3F46E98A340D3B176BCF75@angusnotebook>
Hello

I am creating a modal dialog.  eg:
CLoginDlg dlg;

if (dlg.DoModal() == IDOK)

 ...



In the OnInitDialog in CLoginDlg I am doing this:

SetWindowPos(HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE);

Which does return TRUE.  But it is not topmost.

Can I somehow make this dialog window topmost?  If so, how?

Angus


[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.