|
-
April 27th, 1999, 12:34 PM
#1
windowsize
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?
-
April 27th, 1999, 12:49 PM
#2
Re: windowsize
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|