启动程序时怎么让启动起来的界面显示在电脑的正中间
如下:
#include "stdafx.h"
#include "Form1.h"
using namespace Broadcast;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// 在创建任何控件之前启用 Windows XP 可视化效果
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// 创建主窗口并运行它
Application::Run(gcnew Form1());
return 0;
}
这样启动时界面会在电脑的左上角,怎么让他在正中间呢?谢谢
项目是VC CLR,不是mfc