You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
616 B
28 lines
616 B
#include <windows.h>
|
|
#include <cstdlib>
|
|
#include <ctime>
|
|
#include "LoginWindow.h"
|
|
|
|
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
|
|
// 初始化随机数种子
|
|
srand(static_cast<unsigned int>(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;
|
|
}
|