15,979
社区成员
发帖
与我相关
我的任务
分享
hWnd = CreateWindow(
szWindowClass, // 窗口类名
szTitle, // 窗口标题
WS_OVERLAPPEDWINDOW & ~WS_MAXIMIZEBOX, // 窗口样式(去除最大化按钮)
CW_USEDEFAULT, // 窗口位置X
0, // 窗口位置Y
500, // 窗口宽度
300, // 窗口高度
NULL, // 父窗口句柄
NULL, // 窗口菜单的句柄
hInstance, // 窗口所属应用程序实例的句柄
NULL); // WM_CREATE的附加信息,一般用于多文档
virtual void MoveWindow(
int x,
int y,
int nWidth,
int nHeight
);
Parameters
x
The new position of the left side of the window.
y
The new position of the top of the window.
nWidth
The new width of the window
nHeight
The new height of the window.