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

Dialog box

Started by Tera_Dragon Jul 16, 2004 at 2:36 PM 0 replies 300+ views
Original Post
Tera_Dragon
Tera_Dragon
How can I make a dialog box have a section of it show ogl. What I mean is like in milkshape3d, it is a dialog box (it has tabs and things on the right) and also uses ogl for the edit views. Thanks for any help Tera_Dragon
____________________________________________________________Programmers Resource Central
Brother Bob
Brother Bob
When creating the GL window (I assume you're doing it with raw Win32 API using CreateWindow(Ex)), pass the handle of the window/dialog you want the GL-frame to appear in as the parent, and make sure WS_CHILD is set in the style parameter (WS_CHILD only work OK for me, check MSDN for other options if you want). Position and size of the window is given in dialog coordinates instead of screen space coordinates. Other than that, there's no difference that I know of.

Topic Locked

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

Sign in to reply to this topic.