메시지값의 범위 및 용도
0 through WM_USER –1
Messages reserved for use by the system.
WM_USER through 0x7FFF(십진 32767)
즉, WM_USER ~ WM_USER+31643
Integer messages for use by private window classes.
WM_APP (0x8000) through 0xBFFF(십진 49151 )
즉. WM_APP ~ WM_APP+16383
Messages available for use by applications.
0xC000 through 0xFFFF
String messages for use by applications.
Greater than 0xFFFF
Reserved by the system.
Message numbers in the first range (0 through WM_USER –1) are defined by the system. Values in this range that are not explicitly defined are reserved by the system.
Message numbers in the second range (WM_USER through 0x7FFF) can be defined and used by an application to send messages within a private window class. These values cannot be used to define messages that are meaningful throughout an application because some predefined window classes already define values in this range. For example, predefined control classes such as BUTTON, EDIT, LISTBOX, and COMBOBOX may use these values. Messages in this range should not be sent to other applications unless the applications have been designed to exchange messages and to attach the same meaning to the message numbers.
Message numbers in the third range (0x8000 through 0xBFFF) are available for applications to use as private messages. Messages in this range do not conflict with system messages.
Message numbers in the fourth range (0xC000 through 0xFFFF) are defined at run time when an application calls the RegisterWindowMessage function to retrieve a message number for a string. All applications that register the same string can use the associated message number for exchanging messages. The actual message number, however, is not a constant and cannot be assumed to be the same between different sessions.
Message numbers in the fifth range (greater than 0xFFFF) are reserved by the system.
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
- Messages and Message Queues
- from : https://msdn.microsoft.com/ko-kr/library/windows/desktop/ms644931(v=vs.85).aspx
'VisualStudio.C++.C# > 코딩팁,함수활용,단편' 카테고리의 다른 글
|Getting the System Version. (0)||2017.04.15|
|MFC. Animation Control (CAnimateCtrl Class). AVI 파일 비디오만 재생. (0)||2017.03.28|
|error LNK2001: unresolved external symbol __imp_sprintf, symbol __imp_printf 해결방법. (0)||2017.03.19|