创建窗口

Step 1:WNDCLASS

<C++>创建窗口
typedef struct _WNDCLASS
{
            UINT style;
            WNDPROC lpfnWndProc;
            int cbClsExtra;
            int cbWndExtra;
            HANDLE hInstance;
            HICON hIcon;
            HCURSOR hCursor;
            HBRUSH hbrBackground;
            LPCTSTR lpszMenuName;
            LPCTSTR lpszClassName;      
}WNDCLASS;
<C++>创建窗口

Step 2: RegisterClass

<C++>创建窗口
ATOM RegisterClass(CONST WNDCLASS *lpWndClass);
<C++>创建窗口

Step 3: CreateWindow

<C++>创建窗口
HWND CreateWindow(
           LPCTSTR lpClassName,
           LPCTSTR lpWindowName,
           DWORD dwStyle,
           int x,
           int y,
           int nWidth,
           int nHeight,
           HWND hWndParent,
           HMENU hMenu,
           HANDLE hInstance,
           LPVOID lpParam
);
<C++>创建窗口

Step 4: ShowWindow & UpdateWindow

<C++>创建窗口
BOOL ShowWindow(
         HWND hWnd,
         int nCmdShow
);

BOOL UpdateWindow(
         HWND hWnd,
);
<C++>创建窗口

 

 

 

<C++>创建窗口,布布扣,bubuko.com

<C++>创建窗口

上一篇:Singleton 模式 Java,c++实现


下一篇:Java 8新特性之 Nashorn(八恶人-6)