CreateWindow
This function creates an overlapped, pop-up, or child window. It specifies the window class, window title, window style, and, optionally, the initial position and size of the window. This function also specifies the window's parent.
HWND CreateWindow(
LPCTSTR lpClassName,
LPCTSTR lpWindowName,
DWORD dwStyle,
int x,
int y,
int nWidth,
int nHeight,
HWND hWndParent,
HMENU hMenu,
HANDLE hInstance,
PVOID lpParam
);
lpClassName:传递给此形参的值必须跟前面注册的窗口类的名称相同。