CS_NOCLOSE를 넣어주면 윈도우의 닫기 버튼이 비활성화 된다. (다른 값은 아래에 참조)
CS_BYTEALIGNCLIENT
0x1000
Aligns the window's client area on a byte boundary (in the x direction). This style affects the width of the window and its horizontal placement on the display.
CS_BYTEALIGNWINDOW
0x2000
Aligns the window on a byte boundary (in the x direction). This style affects the width of the window and its horizontal placement on the display.
CS_CLASSDC
0x0040
Allocates one device context to be shared by all windows in the class. Because window classes are process specific, it is possible for multiple threads of an application to create a window of the same class. It is also possible for the threads to attempt to use the device context simultaneously. When this happens, the system allows only one thread to successfully finish its drawing operation.
CS_DBLCLKS
0x0008
Sends a double-click message to the window procedure when the user double-clicks the mouse while the cursor is within a window belonging to the class.
CS_DROPSHADOW
0x00020000
Enables the drop shadow effect on a window. The effect is turned on and off through SPI_SETDROPSHADOW. Typically, this is enabled for small, short-lived windows such as menus to emphasize their Z-order relationship to other windows. Windows created from a class with this style must be top-level windows; they may not be child windows.
CS_GLOBALCLASS
0x4000
Indicates that the window class is an application global class. For more information, see the "Application Global Classes" section of About Window Classes.
CS_HREDRAW
0x0002
Redraws the entire window if a movement or size adjustment changes the width of the client area.
CS_NOCLOSE
0x0200
Disables Close on the window menu.
CS_OWNDC
0x0020
Allocates a unique device context for each window in the class.
CS_PARENTDC
0x0080
Sets the clipping rectangle of the child window to that of the parent window so that the child can draw on the parent. A window with the CS_PARENTDC style bit receives a regular device context from the system's cache of device contexts. It does not give the child the parent's device context or device context settings. Specifying CS_PARENTDC enhances an application's performance.
CS_SAVEBITS
0x0800
Saves, as a bitmap, the portion of the screen image obscured by a window of this class. When the window is removed, the system uses the saved bitmap to restore the screen image, including other windows that were obscured. Therefore, the system does not send WM_PAINT messages to windows that were obscured if the memory used by the bitmap has not been discarded and if other screen actions have not invalidated the stored image.
This style is useful for small windows (for example, menus or dialog boxes) that are displayed briefly and then removed before other screen activity takes place. This style increases the time required to display the window, because the system must first allocate memory to store the bitmap.
CS_VREDRAW
0x0001
Redraws the entire window if a movement or size adjustment changes the height of the client area.
출처 - MSDN
lpfnWndProc
메세지 처리를 할 WNDPROC 함수의 이름을 지정해주는 변수이다. 설명하지 않았지만 WndProc의 이름은 다른 것으로 해도 되며 윈도우 클래스에 처리를 원하는 WNDPROC 이름만 넣어주면 된다.
hIcon
윈도우 타이틀에 출력 되는 아이콘을 지정하고 있는 변수이다. 기본적으로 제공하는 아이콘은 아래를 참조하면 된다.
IDI_APPLICATION
MAKEINTRESOURCE(32512)
Default application icon.
IDI_ASTERISK
MAKEINTRESOURCE(32516)
Asterisk icon. Same as IDI_INFORMATION.
IDI_ERROR
MAKEINTRESOURCE(32513)
Hand-shaped icon.
IDI_EXCLAMATION
MAKEINTRESOURCE(32515)
Exclamation point icon. Same as IDI_WARNING.
IDI_HAND
MAKEINTRESOURCE(32513)
Hand-shaped icon. Same as IDI_ERROR.
IDI_INFORMATION
MAKEINTRESOURCE(32516)
Asterisk icon.
IDI_QUESTION
MAKEINTRESOURCE(32514)
Question mark icon.
IDI_SHIELD
MAKEINTRESOURCE(32518)
Security Shield icon.
IDI_WARNING
MAKEINTRESOURCE(32515)
Exclamation point icon.
IDI_WINLOGO
MAKEINTRESOURCE(32517)
Default application icon.
Windows 2000: Windows logo icon.
출처 - MSDN
hCursor
hicon처럼 커서를 지정하는 변수이다. 이것도 아래를 참조
IDC_APPSTARTING
MAKEINTRESOURCE(32650)
Standard arrow and small hourglass
IDC_ARROW
MAKEINTRESOURCE(32512)
Standard arrow
IDC_CROSS
MAKEINTRESOURCE(32515)
Crosshair
IDC_HAND
MAKEINTRESOURCE(32649)
Hand
IDC_HELP
MAKEINTRESOURCE(32651)
Arrow and question mark
IDC_IBEAM
MAKEINTRESOURCE(32513)
I-beam
IDC_ICON
MAKEINTRESOURCE(32641)
Obsolete for applications marked version 4.0 or later.
IDC_NO
MAKEINTRESOURCE(32648)
Slashed circle
IDC_SIZE
MAKEINTRESOURCE(32640)
Obsolete for applications marked version 4.0 or later. Use IDC_SIZEALL.
IDC_SIZEALL
MAKEINTRESOURCE(32646)
Four-pointed arrow pointing north, south, east, and west
IDC_SIZENESW
MAKEINTRESOURCE(32643)
Double-pointed arrow pointing northeast and southwest
IDC_SIZENS
MAKEINTRESOURCE(32645)
Double-pointed arrow pointing north and south
IDC_SIZENWSE
MAKEINTRESOURCE(32642)
Double-pointed arrow pointing northwest and southeast
IDC_SIZEWE
MAKEINTRESOURCE(32644)
Double-pointed arrow pointing west and east
IDC_UPARROW
MAKEINTRESOURCE(32516)
Vertical arrow
IDC_WAIT
MAKEINTRESOURCE(32514)
Hourglass
IDC_APPSTARTING
MAKEINTRESOURCE(32650)
Standard arrow and small hourglass
IDC_ARROW
MAKEINTRESOURCE(32512)
Standard arrow
IDC_CROSS
MAKEINTRESOURCE(32515)
Crosshair
IDC_HAND
MAKEINTRESOURCE(32649)
Hand
IDC_HELP
MAKEINTRESOURCE(32651)
Arrow and question mark
IDC_IBEAM
MAKEINTRESOURCE(32513)
I-beam
IDC_ICON
MAKEINTRESOURCE(32641)
Obsolete for applications marked version 4.0 or later.
IDC_NO
MAKEINTRESOURCE(32648)
Slashed circle
IDC_SIZE
MAKEINTRESOURCE(32640)
Obsolete for applications marked version 4.0 or later. Use IDC_SIZEALL.
IDC_SIZEALL
MAKEINTRESOURCE(32646)
Four-pointed arrow pointing north, south, east, and west
IDC_SIZENESW
MAKEINTRESOURCE(32643)
Double-pointed arrow pointing northeast and southwest
IDC_SIZENS
MAKEINTRESOURCE(32645)
Double-pointed arrow pointing north and south
IDC_SIZENWSE
MAKEINTRESOURCE(32642)
Double-pointed arrow pointing northwest and southeast
IDC_SIZEWE
MAKEINTRESOURCE(32644)
Double-pointed arrow pointing west and east
IDC_UPARROW
MAKEINTRESOURCE(32516)
Vertical arrow
IDC_WAIT
MAKEINTRESOURCE(32514)
Hourglass
출처 - MSDN
hbrBackground
배경색을 넣어주는 변수이다. 넣은 방법은 다양하므로 생략
lpszClassName
윈도우를 생성할 때 윈도우 클래스 이름을 인자로 넣는데 그 때 여기에 넣어준 문자열 쓰면 그 윈도우 클래스를 가지고 윈도우를 생성한다.