Link to home
Start Free TrialLog in
Avatar of netcrazy
netcrazy

asked on

MessageBox ,z-order

In my program i pop up a message box at some point. If there are other windows open, then the message box  goes into the background. I wanted to bring the messagebox into foreground. I tried using MB_TOPMOST|MB_SETFOREGROUND flag in the message box function, but did not get the expected result.

Please let me know the solution for this prob, I have a vc++ prg and am using MFC
ASKER CERTIFIED SOLUTION
Avatar of alb66
alb66
Flag of Italy 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
Avatar of netcrazy
netcrazy

ASKER

Thank You,
  Adding MB_SYSTEMMODAL. gave me the required soln.