当前位置:网站首页>Taskbar explicit / implicit toggle function
Taskbar explicit / implicit toggle function
2022-07-02 05:29:00 【Master Hao】
void MainWindow::ShowFullScreen(BOOL bFull)
{
LPARAM lParam;
int iShowState;
if (bFull == TRUE)
{
// Task bar auto hide
lParam = ABS_AUTOHIDE;
iShowState = SW_HIDE;
ui->maxButton->hide();
ui->minButton->hide();
ui->closeButton->hide();
showMaximized();
}
else
{
lParam = ABS_ALWAYSONTOP;
iShowState = SW_SHOW;
ui->maxButton->show();
ui->minButton->show();
ui->closeButton->show();
showNormal();
}
// Set the display status through the taskbar handle
APPBARDATA apBar;
memset(&apBar, 0, sizeof(apBar));
apBar.cbSize = sizeof(apBar);
apBar.hWnd = FindWindow(L"Shell_TrayWnd", NULL);
if (apBar.hWnd != NULL)
{
apBar.lParam = lParam;
SHAppBarMessage(ABM_SETSTATE, &apBar);
ShowWindow(apBar.hWnd, iShowState);
}
}
边栏推荐
- 创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程
- Straighten elements (with transition animation)
- LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
- Online English teaching app open source platform (customized)
- Gee: create a new feature and set corresponding attributes
- Reflection of the soul of the frame (important knowledge)
- Fabric.js 圆形笔刷
- Fabric. JS 3 APIs to set canvas width and height
- Basic use of form
- Record sentry's path of stepping on the pit
猜你喜欢

Using Kube bench and Kube hunter to evaluate the risk of kubernetes cluster

Fabric. JS upload local image to canvas background

kmp思想及模板代码

"Original, excellent and vulgar" in operation and maintenance work

LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)

Storage of data

With an amount of $50billion, amd completed the acquisition of Xilinx
![Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]](/img/ff/59956c2323567cc614458a2bccb642.jpg)
Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]

Operator details

6. Network - Foundation
随机推荐
Global and Chinese market of travel data recorder (VDR) 2022-2028: Research Report on technology, participants, trends, market size and share
Usage record of vector
Fabric. JS iText set italics manually
Fabric.js IText 手动设置斜体
7.1 simulation summary
Fabric.js 基础笔刷
Fabric. JS right click menu
Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]
Generate QR code
Fabric.js 将本地图像上传到画布背景
Visual Studio導入
h5跳小程序
Two implementation methods of delay queue
idea开发工具常用的插件合集汇总
【pyinstaller】_ get_ sysconfigdata_ name() missing 1 required positional argument: ‘check_ exists‘
idea開發工具常用的插件合集匯總
Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]
【技术随记-08】
Fabric.js 自由绘制矩形
Fabric. JS upload local image to canvas background