📄 classroom.cpp
字号:
// ClassRoom.cpp: 主项目文件。
#include "stdafx.h"
#include "MainInterface.h"
#include "WaitInterface.h"
using namespace ClassRoom;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// 在创建任何控件之前启用 Windows XP 可视化效果
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
WaitInterface^ wait = gcnew WaitInterface();
System::Threading::ThreadStart^ ts = gcnew System::Threading::ThreadStart(&WaitInterface::show);
System::Threading::Thread^ readThread = gcnew System::Threading::Thread(ts);
System::Threading::ThreadStart^ ts1 = gcnew System::Threading::ThreadStart(wait,&WaitInterface::CreateMainInterface);
System::Threading::Thread^ readThread1 = gcnew System::Threading::Thread(ts1);
readThread1->Start();
readThread->Start();
readThread->Sleep(2000);
readThread->Abort();
Thread::Sleep(1000);
wait->main->ShowDialog();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -