title: How can I make my program do a true full screen view in VC++?
body: <p>How can I make a true full screen mode in VC++?</p>
  <h3>Code:</h3>
  <pre><code>#include &lt;windows.h&gt;
  LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
  
  int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                      PSTR szCmdLine, int iCmdShow)
  {
       static TCHAR szAppName[] = TEXT (&quot;screen&quot;) ;
       HWND         hwnd ;
       MSG          msg ;
       WNDCLASS     wndclass ;
  
       wndclass.style         = CS_HREDRAW | CS_VREDRAW ;
       wndclass.lpfnWndProc   = WndProc ;
       wndclass.cbClsExtra    = 0 ;
       wndclass.cbWndExtra    = 0 ;
       wndclass.hInstance     = hInstance ;
       wndclass.hIcon         = LoadIcon (NULL, IDI_APPLICATION);
       wndclass.hCursor       = LoadCursor (NULL, IDC_ARROW) ;
       wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;
       wndclass.lpszMenuName  = NULL ;
       wndclass.lpszClassName = szAppName ;
  
       if (!RegisterClass (&amp;wndclass))
       {
            MessageBox (NULL, TEXT (&quot;Program requires Windows NT!&quot;), 
                        szAppName, MB_ICONERROR) ;
            return 0 ;
       }
  
       hwnd = CreateWindow (szAppName, TEXT (&quot;Digital Clock&quot;),
                            WS_POPUP|WS_DLGFRAME|WS_VISIBLE, // _OVERLAPPEDWINDOW| WS_MAXIMIZE,
                            CW_USEDEFAULT, CW_USEDEFAULT,
                            CW_USEDEFAULT, CW_USEDEFAULT,
                            NULL, NULL, hInstance, NULL) ;
  
       ShowWindow (hwnd, SW_MAXIMIZE);// iCmdShow) ;
       UpdateWindow (hwnd) ;
  
       while (GetMessage (&amp;msg, NULL, 0, 0))
            {
            TranslateMessage (&amp;msg) ;
            DispatchMessage (&amp;msg) ;
            }
       return msg.wParam ;
       }
  </code></pre>