Full screen MFC application
Posted on 2004-10-07
I'm developping an application with MFC (VC 6.0), and I'd like that the main modal of my application to be in full screen, and I'd like that it works for different screen size.
For the moment I use the following code:
// Put window on top and expand it to fill screen
int cx, cy;
HDC dc = ::GetDC(NULL);
cx = GetDeviceCaps(dc,HORZRES) +
cy = GetDeviceCaps(dc,VERTRES) +
But it just expand the window....
Moreover I'd like that this main window (the window which appears when you launch the program) to be not moved by clicking on the menu bar and moving the mouse...
Hope you see what I mean.
Thanky by advance.