Click here to Skip to main content
15,914,767 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple files used for input to SDI Application Pin
b_girl19-Sep-03 7:38
b_girl19-Sep-03 7:38 
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow19-Sep-03 7:43
David Crow19-Sep-03 7:43 
GeneralRe: Multiple files used for input to SDI Application Pin
b_girl19-Sep-03 8:35
b_girl19-Sep-03 8:35 
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow19-Sep-03 8:39
David Crow19-Sep-03 8:39 
GeneralRe: Multiple files used for input to SDI Application Pin
b_girl18-Sep-03 10:22
b_girl18-Sep-03 10:22 
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow18-Sep-03 9:44
David Crow18-Sep-03 9:44 
GeneralOpenGL in a portion of a dialog box Pin
ComboController18-Sep-03 8:12
ComboController18-Sep-03 8:12 
GeneralRe: OpenGL in a portion of a dialog box Pin
Bugra Barin18-Sep-03 8:32
Bugra Barin18-Sep-03 8:32 
I would create a picture control inside the dialog and assign a CStatic control variable to it, say m_cPic. Then in OnInitDialog you can get a DC for the picture control and assign this DC to the OpenGL rendering context. Something like

HDC hdc = m_cPic.GetDC()->GetSafeHdc();
wglMakeCurrent(hdc, hGLRC); // hGLRC is handle to the OpenGL rendering context

This approach worked for me before.
GeneralRe: OpenGL in a portion of a dialog box Pin
ComboController18-Sep-03 9:00
ComboController18-Sep-03 9:00 
GeneralRe: OpenGL in a portion of a dialog box Pin
Bugra Barin18-Sep-03 13:09
Bugra Barin18-Sep-03 13:09 
GeneralRe: OpenGL in a portion of a dialog box Pin
Roger Allen19-Sep-03 2:02
Roger Allen19-Sep-03 2:02 
GeneralRe: OpenGL in a portion of a dialog box Pin
MemLeak19-Sep-03 7:08
MemLeak19-Sep-03 7:08 
Questionwhere is main defined? Pin
Anonymous18-Sep-03 8:00
Anonymous18-Sep-03 8:00 
AnswerRe: where is main defined? Pin
Alvaro Mendez18-Sep-03 8:21
Alvaro Mendez18-Sep-03 8:21 
AnswerRe: where is main defined? Pin
John M. Drescher18-Sep-03 9:05
John M. Drescher18-Sep-03 9:05 
GeneralRe: where is main defined? Pin
Anonymous18-Sep-03 11:05
Anonymous18-Sep-03 11:05 
AnswerRe: where is main defined? Pin
vcplusplus18-Sep-03 11:22
vcplusplus18-Sep-03 11:22 
AnswerRe: where is main defined? Pin
Alexander M.,19-Sep-03 2:57
Alexander M.,19-Sep-03 2:57 
GeneralRe: where is main defined? Pin
Dangleberry19-Sep-03 5:45
sussDangleberry19-Sep-03 5:45 
Generalpassing arguments Pin
Sirrius18-Sep-03 7:08
Sirrius18-Sep-03 7:08 
GeneralRe: passing arguments Pin
David Crow18-Sep-03 7:26
David Crow18-Sep-03 7:26 
GeneralRe: passing arguments Pin
Anonymous18-Sep-03 8:55
Anonymous18-Sep-03 8:55 
GeneralRe: passing arguments Pin
David Crow18-Sep-03 9:00
David Crow18-Sep-03 9:00 
GeneralRe: passing arguments Pin
Anonymous18-Sep-03 9:15
Anonymous18-Sep-03 9:15 
GeneralRe: passing arguments Pin
David Crow18-Sep-03 9:40
David Crow18-Sep-03 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.