Share via


How to Prevent Display of Smart Minimize Buttons in Application Windows

4/19/2010

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 — add the WS_NONAVDONEBUTTON to the styles when calling the Windows Embedded CE CreateWindow function.

Code Example

The following code example demonstrates how to prevent the Smart Minimize button from appearing on title bar of windows.

Note

To make the following code example easier to read, security checking and error handling are not included. This code example should not be used in a release configuration unless it has been modified to include them.

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

See Also

Tasks

How to Create a Full-Screen Window