Original Post
How do I get a Window-Mode with MFC and DirectX? The primary surface keeps eating up the whole damn window. I''m using a clipper here, should I use....
I have a clipper ready, should i use the GetClientArea to set the RECT for the Clipper? That should work right? Well how do I do this?
RECT lpClntRc; // Client RECT that DX should take over CMainFrame *cMF = new CMainFrame(); // Derived from CFrameWnd cMF-> Create(NULL,"Title-Bar",WS_TILTED|WS_SYSMENU,CRect(0,0,300,300)); m_pMainWnd = cMF; cMF->ShowWindow(SW_SHOW); cMF->UpdateWindow(); // and so on with MFC and DX set up lpDD->SetCooperativeLevel(cMF->GetSafeHwnd(),DDSCL_NORMAL); // ok every thang work until I try to Clear the primary surface