PLMTool/UI/UI.cpp
2024-02-28 10:26:19 +08:00

21 lines
696 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// UI.cpp : 定义应用程序的入口点。
//
#include "framework.h"
#include "UI.h"
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
// 获取桌面窗口的句柄
HWND desktopWnd = GetDesktopWindow();
int result = MessageBox(desktopWnd, TEXT("10s后会退出PLM系统立即退出点击确定..."), TEXT("警告"), MB_OKCANCEL | MB_ICONWARNING| MB_SYSTEMMODAL);
return result==1 || result == 2 ? result:0; //1确定 2取消
}