1. In the CMainFrame::OnCreate (lpcreatestruct lpcreatestruct) function, increase the
The Settings window does not have a title bar and a menu bar
ModifyStyle (ws_caption, 0);
SetMenu (NULL);
The Settings window does not appear on the taskbar
ModifyStyleEx (0, Ws_ex_toolwindow);
2. The properties of the dialog box are set to no title bar, the generated program does not have an icon in the taskbar, and in OnInitDialog (), add:
dialog box with no Tilte bar properties displayed in taskbar
ModifyStyleEx (0, Ws_ex_appwindow);
SetWindowText ("Killing Games Interface");
3. Use Ws_ex_toolwindow to create a tool window that is used as a floating toolbar. The label of the tool window
The title bar is shorter than the regular caption bar and uses a smaller window font. Tool windows do not appear in the taskbar;
When you press ALT + TAB, it does not appear in the task table ...
4. No title bar window maximized will cover the taskbar:
Get the height of the screen in addition to the taskbar: GetSystemMetrics (Sm_cyfullscreen);
In the WM_GETMINMAXINFO message:
Minmaxinfo *pmmi = (minmaxinfo*) LParam;
Pmmi.ptmaxsize.y = GetSystemMetrics (Sm_cyfullscreen);
Or:
RECT RT;
SystemParametersInfo (spi_getworkarea,0, (PVOID) &rt,0);
int width = Rt.right-rt.left;
int height= rt.bottom-rt.top;
The width and height obtained here will not obscure the width and height of the taskbar;
"Go" in the VC implementation of the program is not displayed in the taskbar button, the title bar and the menu bar is not displayed