当前位置:网站首页>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);
}
}
边栏推荐
- Fabric. JS gradient
- 生成二维码
- Leetcode 18 problem [sum of four numbers] recursive solution
- Visual Studio導入
- Differential identities (help find mean, variance, and other moments)
- Applet jumps to official account
- Php/js cookie sharing across domains
- Gee: use of common mask functions in remote sensing image processing [updatemask]
- Dark horse notes -- map set system
- ERP management system development and design existing source code
猜你喜欢
随机推荐
LeetCode 241. 为运算表达式设计优先级(分治/记忆化递归/动态规划)
Principle and implementation of parallax effect
Résumé de la collection de plug - ins couramment utilisée dans les outils de développement idea
创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程
6.网络-基础
Fabric. JS basic brush
Fabric.js 居中元素
Fabric.js IText 上标和下标
Online music player app
LeetCode 1175. 质数排列(质数判断+组合数学)
Fabric. JS 3 APIs to set canvas width and height
el form 表单validate成功后没有执行逻辑
Gee: analyze the change of spatial centroid of remote sensing image [centroid acquisition analysis]
Simply encapsulate JS and apply it
6. Network - Foundation
Usage record of vector
Essence and physical meaning of convolution (deep and brief understanding)
Php/js cookie sharing across domains
Detailed explanation of Pointer use
Global and Chinese market of travel data recorder (VDR) 2022-2028: Research Report on technology, participants, trends, market size and share









