🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

OpenGL / win32 question

Started by
0 comments, last by Ambiant 24 years ago
Hi, I''d like to know if there could be an easy way for me to split a windowed window to have its first half displaying a openGL scence (say the left part of the window...) and the other part (the right one) displaying standard windows stuff (like a button for example!)? My guess is that something could be done using the resize event..?!
Advertisement
Hi, there!
I don''t know why you''ll do that (are you programming an editor?), but there''s a way!
If you''re using c++ you could use CreateDialog or DialogBox. This functions are using the resource-scripts offered by VisualC++. Within this Dialog you could create a picture-context or something like this. Then get the handle to the window (HWND) via GetDlgItem and the DC via GetDC( hDlgWnd ). Now you can use it as a OpenGl RC... descriped in the nehe tutorials.

I hope this helps a little bit!

If you have more question make a new topic and send me a mail
s.suhl@assenmacher.net

This topic is closed to new replies.

Advertisement