当前位置:网站首页>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);
}
}
边栏推荐
- 青训营--数据库实操项目
- Importation de studio visuel
- Fabric. JS iText superscript and subscript
- No logic is executed after the El form is validated successfully
- Visual Studio導入
- Global and Chinese market of hydrocyclone desander 2022-2028: Research Report on technology, participants, trends, market size and share
- Leetcode18题 【四数之和】递归解法
- Online English teaching app open source platform (customized)
- ERP management system development and design existing source code
- A collection of commonly used plug-ins for idea development tools
猜你喜欢
Disable access to external entities in XML parsing
idea開發工具常用的插件合集匯總
How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure
7. Eleven state sets of TCP
【pyinstaller】_ get_ sysconfigdata_ name() missing 1 required positional argument: ‘check_ exists‘
Johnson–Lindenstrauss Lemma(2)
运维工作的“本手、妙手、俗手”
Fabric. JS iText superscript and subscript
"Original, excellent and vulgar" in operation and maintenance work
Disable access to external entities in XML parsing
随机推荐
Nodejs (03) -- custom module
Collectors. Groupingby sort
来啦~ 使用 EasyExcel 导出时进行数据转换系列新篇章!
【技术随记-08】
Global and Chinese market of impact roll 2022-2028: Research Report on technology, participants, trends, market size and share
操作符详解
Global and Chinese market of cell culture freezers 2022-2028: Research Report on technology, participants, trends, market size and share
No logic is executed after the El form is validated successfully
6. Network - Foundation
Fabric. JS activation input box
[technical notes-08]
Gee series: unit 9 generate sampling data in GEE [random sampling]
摆正元素(带过渡动画)
Fabric.js IText 手动设置斜体
Gee series: Unit 3 raster remote sensing image band characteristics and rendering visualization
Global and Chinese markets of semiconductor laser therapeutics 2022-2028: Research Report on technology, participants, trends, market size and share
Collectors.groupingBy 排序
Fabric.js 居中元素
Pycharm breakpoint management: temporarily cancel some breakpoints + run directly to a line
Gee series: Unit 1 Introduction to Google Earth engine