SetWindowPos

  • Thread starter Thread starter Ron
  • Start date Start date
R

Ron

I have a MFC COM Server that runs in the background.
There is no UI or dialogs other than an occasional
AfxMessageBox that might pop up with messages.

My problem is if the user is running any other app, the
MessageBox pops up behind other loaded windows.

So, I need to be able to set the window position (zorder)
of an AfxMessageBox. I've used SetWindowPos for dialogs
(in which case you pass the handle), but I'm not sure
about a messagebox.

Any help would be appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top