In a win system constant, two to three letters are usually prefixed with an underscore, from which the type of constant can be known.
Generally, the first letter is the control's first letter. The second letter is m, which is a message constant, and S is a style constant, N is notification and event (notify Y ).
The following lists the constant prefixes of some constants to facilitate future use of APIs and constants.
The following content is based on my experience. If you find any mistakes, please correct them.
If you are using development tools such as VB and easy language that require constant declaration, you can download some tools to query and copy them.
Here I recommend a "Comet assistant" compiled by myself to directly copy the constant declaration text in VB and easy language.
WM _ |
Window message |
Window messages are generally used in message functions such as sendmessage and postmessage. |
Sm _ |
Static message |
Static tag message |
SS _ |
Static Style |
Static tag Style |
BM _ |
Button message |
Button message |
BS _ |
Button Style |
Button Style |
BN _ |
Button Policy |
Button notification |
Em _ |
Edit message |
Edit box message |
Es _ |
Edit Style |
Edit box style |
CB _ |
ComboBox |
Combo message |
CBN _ |
ComboBox y |
Combo box notification |
LBM _ |
ListBox message |
List box message |
LBs _ |
ListBox Style |
List box style |
LBN _ |
ListBox y |
List box notification |
LVM _ |
Listview message |
Super list box (List View) Message |
LVS _ |
Listview Style |
Super list box (List View) style |
LVN _ |
Listview Policy |
Super list box (List View) Notification |
TVM _ |
Treeview message |
Messages in a tree (Tree View) |
TVs _ |
Treeview Style |
Tree frame (Tree View) style |
TVN _ |
Treeview Policy |
Tree frame (Tree View) Notification |
VK _ |
Virtual Keyboard |
Virtual keys and keysCode |