I want a MFC-program (SDI) to run in a big window, same size as the entire
screen without a border. Can someone tell me how to do that?
Printable View
I want a MFC-program (SDI) to run in a big window, same size as the entire
screen without a border. Can someone tell me how to do that?
I didn't test this, but you should be able to determine the maximum width and height for your window by using the desktop window's dimensions as a guide:
CDC *pDC = CWnd::GetDeskTopWindow()->GetDC();
int MaxXSize = pDC->GetDeviceCaps(HORZRES);
int MaxYSize = pDC->GetDeviceCaps(VERTRES);
pDC->ReleaseDC();
...
Now create a top-level window without a border that's MaxXSize wide and MaxYSize tall, positioned at (0,0).
Regards,
Paul McKenzie