Win32: full-screen and hiding taskbar

前端 未结 6 1996
我在风中等你
我在风中等你 2020-11-30 21:18

I have a window, which I SetWindowPos(window, HWND_TOP, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), SWP_FRAMECHANGED);

It covers

6条回答
  •  自闭症患者
    2020-11-30 22:05

    1. Right click on the taskbar
    2. choose Properties
    3. uncheck the checkbox that says "Keep the taskbar on top of other windows".

    The taskbar belongs to the user, It's up to them to care about having it take 1/2 second to auto-hide when you app goes full screen. If they want to change that behavior then they can change it.

    If you are working in an embedded system, then you may have a legitimate reason to hide the taskbar. But in that case, there's no reason not to simply configure the taskbar to not always be on top. You could also have a look at SystemParametersInfo if you want to change some of these settings in your code.

提交回复
热议问题