Common Windows message and constant naming references

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.