April 27th, 1999, 12:34 PM
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?
screen without a border. Can someone tell me how to do that?
|
Click to See Complete Forum and Search --> : windowsize April 27th, 1999, 12:34 PM 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? Paul McKenzie April 27th, 1999, 12:49 PM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |