"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

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.