Link to home
Start Free TrialLog in
Avatar of TYB
TYB

asked on

BringWindowToTop() ??

I would like to bring my dialog on top of all other windows when a special event occur.... As a natural thing I´m using BringWindowToTop() in my dialog-class.... My question is:
Why doesn´t the dialog respond to this ?? Nothing happends...

When I´m using:
SetWindowPos(&wndTopMost,0,0,0,0, SWP_NOSIZE |SWP_NOMOVE;
SetWindowPos(&wndNoTopMost,0,0,0,0, SWP_NOSIZE |SWP_NOMOVE;

it works fine form me... but if i have set the dialog to be on top always then these 2 functions will unset that...

ASKER CERTIFIED SOLUTION
Avatar of NickRepin
NickRepin

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
Avatar of TYB
TYB

ASKER

Tnx.... Works fine now... Do you have any idea why BringWindowToTop() doesn´t work ??


It is for application private use. It doesn't affect other apps.
Avatar of TYB

ASKER

Ahhh..  Ok .. tnx a lot for the help...