Rendering to Picturebox
I was wondering if there is anyway to render to a picture box or other box on a dialog form, i am not using MFC
thanks in advance
So you''re just doing straight Windows API programming?
In MFC, pretty much every window class whether it be a control, dialog, picturebox or whatever has an hDC property. I''ve never done Windows API coding without MFC but I''d bet even money that your picturebox window has a DC. You can pass this DC to wglCreateContext and SetPixelFormat and whatnot just like the DC of any window - NeHe''s first tutorial shows how to do this, it''s no different for subwindows of dialogs.
Good luck!
Love means nothing to a tennis player
In MFC, pretty much every window class whether it be a control, dialog, picturebox or whatever has an hDC property. I''ve never done Windows API coding without MFC but I''d bet even money that your picturebox window has a DC. You can pass this DC to wglCreateContext and SetPixelFormat and whatnot just like the DC of any window - NeHe''s first tutorial shows how to do this, it''s no different for subwindows of dialogs.
Good luck!
Love means nothing to a tennis player
My nothing-to-write-home-about OpenGL webpage. (please pardon the popups!)
Love means nothing to a tennis player
My nothing-to-write-home-about OpenGL webpage. (please pardon the popups!)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement