Link to home
Start Free TrialLog in
Avatar of edhill
edhill

asked on

How to make a modeless dialog stay on top

I have a modeless dialog box.  I need this dialog box to stay on top of all applications.  How do I do this in MFC?  Can this option be set/changed at runtime.
Avatar of shaig
shaig
Flag of Afghanistan image

Yes. you can make the window a TOPMOST one in the OnInitDialog() function of the modal dialig.
Avatar of edhill
edhill

ASKER

Can this option be changed at runtime.  I know that some applications have a menu selection called always on top that you can check and uncheck according to your needs.

Also is the SetWindowPosition the only function that can do this.  I really do not want to change the current location of my modeless dialog box.
ASKER CERTIFIED SOLUTION
Avatar of shaig
shaig
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial