OpenGL / win32 question
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..?!
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
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
Popular Topics
Advertisement