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
Editors IDEsSystem Programming

Avatar of undefined
Last Comment
netcrazy

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
alb66

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
netcrazy

ASKER
Thank You,
  Adding MB_SYSTEMMODAL. gave me the required soln.
Your help has saved me hundreds of hours of internet surfing.
fblack61