Win32 user-defined message range

Source: Internet
Author: User

Windows custom messages Wm_user and Wm_app

Wm_user constants are private messages in Windows Help applications that define private window classes, typically using an integer value of wm_user+, but the total value cannot exceed 0x7fff.

#define Wm_user 0x0400-->1024

The Wm_app constant is a Windows Help application that defines a private message, typically using an integer value of wm_app+, but the total value cannot exceed 0xBFFF.

#define WM_APP 0x8000-->32768

Both of these are defined in the WinUser.h.

Range representation

0 ~ wm_user–1 messages reserved by the operating system.

wm_user ~ 0x7FFF integer-type message for private window class.

Wm_app ~ 0xBFFF messages for Applications.

A string message for 0xc000 ~ 0xFFFF applications.

0xFFFF ~ messages reserved by the operating system.

MFC has pre-defined some common control bars in the afxres.h.

#define AFX_IDW_TOOLBAR 0xe800//main TOOLBAR for window

#define Afx_idw_status_bar 0xe801//STATUS BAR window

#define Afx_idw_preview_bar 0xe802//PrintPreview Dialog BAR

#define Afx_idw_resize_bar 0xe803//OLE in-place RESIZE BAR

#define Afx_idw_rebar 0xe804//COMCTL32 "REBAR" Bar

#define Afx_idw_dialogbar 0xe805//CDialogBar

Transferred from: HTTP://HI.BAIDU.COM/LUODX1021/ITEM/1FD9A030BC40BDCA1B9696A2

Win32 user-defined message range

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.