Step 1:WNDCLASS
typedef struct _WNDCLASS { UINT style; WNDPROC lpfnWndProc; int cbClsExtra; int cbWndExtra; HANDLE hInstance; HICON hIcon; HCURSOR hCursor; HBRUSH hbrBackground; LPCTSTR lpszMenuName; LPCTSTR lpszClassName; }WNDCLASS;
Step 2: RegisterClass
ATOM RegisterClass(CONST WNDCLASS *lpWndClass);
Step 3: CreateWindow
HWND CreateWindow( LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HANDLE hInstance, LPVOID lpParam );
Step 4: ShowWindow & UpdateWindow
BOOL ShowWindow( HWND hWnd, int nCmdShow ); BOOL UpdateWindow( HWND hWnd, );