Skip to main content
GameDev.net gamedev.net
🔒 Locked

MessageBox problem

Started by Gelmir Oct 8, 2001 at 10:47 AM 0 replies 450+ views
Original Post
Gelmir
Gelmir
Hi there. I have a problem whith the api function MessageBox. I create a window for OpenGL rendering. The style of the window''s class is CS_HREDRAW|CS_VREDRAW | CS_OWNDC and the style passed to CreateWindow is WS_MINIMIZEBOX|WS_VISIBLE| WS_CLIPSIBLINGS|WS_CLIPCHILDREN|WS_MAXIMIZEBOX|WS_CAPTION| WS_BORDER|WS_SYSMENU|WS_THICKFRAME. After creating the window, i set it the foreground window and give it the focus. Everything is right but when I call the MessageBox, the main window lost the focus, but the dialog isn''t showed. ¿Any idea?
"If you''re gonna die, die with your boots on"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.