Original Post
Yeah I know...it''s been asked before
. I know how to do it but it just won''t work. Here''s the function...
void GraphicsCore::SetRenderWindow(HWND hWnd) {
hDC = GetDC(hWnd);
wglMakeCurrent(hDC,hRC);
} Here''s where I set up the window...
CREATESTRUCT cs; ZeroMemory(&cs, sizeof(CREATESTRUCT)); HWND hChild = CreateWindowEx(WS_EX_MDICHILD,"SolEditChild","", WS_CHILD | WS_VISIBLE | WS_OVERLAPPEDWINDOW, CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT, hMDIClient,NULL,hInstance,&cs);Passing hChild to my function has no effect. Is there anything obvious I''m missing?