#include #include #include #include "LoginWindow.h" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // 初始化随机数种子 srand(static_cast(time(NULL))); // 显示登录窗口 LoginWindow::Show(); // 主消息循环 MSG msg; BOOL bRet; while ((bRet = GetMessage(&msg, NULL, 0, 0)) != 0) { if (bRet == -1) { // 错误处理 break; } else { TranslateMessage(&msg); DispatchMessage(&msg); } } return msg.wParam; }