|
@@ -276,20 +276,22 @@ VOID HideTaskBar(BOOL bHide)
|
|
|
lParam = ABS_ALWAYSONTOP;
|
|
|
}
|
|
|
if (hWnd != NULL) {
|
|
|
- //APPBARDATA apBar;
|
|
|
- //memset(&apBar, 0, sizeof(apBar));
|
|
|
- //apBar.cbSize = sizeof(apBar);
|
|
|
- //apBar.hWnd = hWnd;
|
|
|
- //if (apBar.hWnd != NULL)
|
|
|
- //{
|
|
|
- // apBar.lParam = lParam;
|
|
|
- // SHAppBarMessage(ABM_SETSTATE, &apBar);
|
|
|
- //}
|
|
|
+#ifdef DEVOPS_ON_PRD
|
|
|
ShowWindow(hWnd, nCmdShow);
|
|
|
+#else
|
|
|
+ APPBARDATA apBar;
|
|
|
+ memset(&apBar, 0, sizeof(apBar));
|
|
|
+ apBar.cbSize = sizeof(apBar);
|
|
|
+ apBar.hWnd = hWnd;
|
|
|
+ if (apBar.hWnd != NULL)
|
|
|
+ {
|
|
|
+ apBar.lParam = lParam;
|
|
|
+ SHAppBarMessage(ABM_SETSTATE, &apBar);
|
|
|
+ }
|
|
|
+#endif // DEVOPS_ON_PRD
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
|
|
{
|
|
|
// 校正active.txt的属性
|
|
@@ -297,9 +299,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
|
|
|
|
|
//启动框架
|
|
|
if (RunSpshell()) {
|
|
|
-#ifdef DEVOPS_ON_PRD
|
|
|
HideTaskBar(TRUE);
|
|
|
-#endif // DEVOPS_ON_PRD
|
|
|
}
|
|
|
|
|
|
hInst = hInstance; // 将实例句柄存储在全局变量中
|