Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Child control steals focus! How to stop?

Status
Not open for further replies.

nexius

Programmer
Jul 8, 2000
109
CA
Hi

I've succeeded in making a dialog box with a child control window that shows a 3D scene using OpenGL, and this works fine... but every time I try to bring up a message box (that is modal), or a another dialog box, nothing happens, and I can't even click on the main dialog box.

I'm not quite sure what to do... I thought there might be a message in WindowProc that I could intercept and return before the window steals the focus, but even if I return all the messages I still can't see message boxes.

Anybody know what I'm talking about?
 
I've had that happen to me before when I was using D3D I think. Are you using MFC or not? If not, you might not have the visible box checked for the dialog's settings, which could cause the problem.
 
Yea I'm using MFC.

I don't think there is anything wrong with the dialog box's settings. If I destroy the opengl window then everything works fine. That's how I knew it was opengl that was stealing the focus.

Do you have any other suggestions?

Thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top