How to: Prevent Display of Smart Minimize Buttons in Application Windows

In general, a top-level window should include a Smart Minimize button in the title bar.

To prevent the Smart Minimize button from appearing on title bar of windows

  • Do not use the WS_CAPTION style and add the WS_NONAVDONEBUTTON to the styles when calling the Windows CE CreateWindow function, as in the following example:

    hWnd = CreateWindow(szWindowClass, szTitle, 
        WS_VISIBLE | WS_NONAVDONEBUTTON, CW_USEDEFAULT, 
        CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, 
        NULL, hInstance, NULL);
    

See Also

How to: Create a Full-Screen Window

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.