Windows message list

Source: Internet
Author: User

Wm_null = 0x0000,
Wm_create = 0 x0 0001,
Wm_destroy = 0x0002,
Wm_move = 0x0003,
Wm_size = 0x0005,
Wm_activate = 0x0006,
Wm_setfocus = 0x0007,
Wm_killfocus = 0x0008,
Wm_enable = 0x000a,
Wm_setredraw = 0x000b,
Wm_settext = 0x000c,
Wm_gettext = 0x000d,
Wm_gettextlength = 0x000e,
Wm_paint = 0x000f,
Wm_close = 0x0010,
Wm_queryendsession = 0x0011,
Wm_quit = 0x0012,
Wm_queryopen = 0x0013,
Wm_erasebkgnd = 0x0014,
Wm_syscolorchange = 0x0015,
Wm_endsession = 0x0016,
Wm_showwindow = 0x0018,
Wm_wininichange = 0x001a,
Wm_settingchange = 0x001a,
Wm_devmodechange = 0x001b,
Wm_activateapp = 0x001c,
Wm_fontchange = 0x001d,
Wm_timechange = 0x001e,
Wm_cancelmode = 0x001f,
Wm_setcursor = 0x0020,
Wm_mouseactivate = 0x0021,
Wm_childactivate = 0x0022,
Wm_queuesync = 0x0023,
Wm_getminmaxinfo = 0x0024,
Wm_painticon = 0x0026,
Wm_iconerasebkgnd = 0x0027,
Wm_nextdlgctl = 0 x0028,
Wm_spoolerstatus = 0x002a,
Wm_drawitem = 0x002b,
Wm_measureitem = 0x002c,
Wm_deleteitem = 0x002d,
Wm_vkeytoitem = 0x002e,
Wm_chartoitem = 0x002f,
Wm_setfont = 0x0030,
Wm_getfont = 0x0031,
Wm_sethotkey = 0x0032,
Wm_gethotkey = 0x0033,
Wm_querydragicon = 0x0037,
Wm_compareitem= 0x0039,
Wm_getobject = 0x003d,
Wm_compacting = 0x0041,
Wm_commnotify = 0x0044,
Wm_windowposchanging = 0x0046,
Wm_windowposchanged = 0x0047,
Wm_power = 0x0048,
Wm_copydata = 0x004a,
Wm_canceljournal = 0x004b,
Wm_notify = 0x004e,
Wm_inputlangchangerequest = 0x0050,
Wm_inputlangchange = 0x0051,
Wm_tcard = 0x0052,
Wm_help = 0x0053,
Wm_userchange = 0x0054,
Wm_policyformat = 0x0055,
Wm_contextmenu = 0x007b,
Wm_stylechanging = 0x007c,
Wm_stylechanged = 0x007d,
Wm_displaychange = 0x007e,
Wm_geticon = 0x007f,
Wm_seticon = 0x0080,
Wm_nccreate = 0x0081,
Wm_ncdestroy = 0x0082,
Wm_nccalcsize = 0x0083,
Wm_nchittest = 0x0084,
Wm_ncpaint = 0x0085,
Wm_ncactivate = 0x0086,
Wm_getdlgcode = 0x0087,
Wm_syncpaint = 0x0088,
Wm_ncmousemove = 0x00a0,
Wm_nclbuttondown = 0x00a1,
Wm_nclbuttonup = 0x00a2,
Wm_nclbuttondblclk = 0x00a3,
Wm_ncrbuttondown = 0x00a4,
Wm_ncrbuttonup = 0x00a5,
Wm_ncrbuttondblclk = 0x00a6,
Wm_ncmbuttondown = 0x00a7,
Wm_ncmbuttonup = 0x00a8,
Wm_ncmbuttondblclk = 0x00a9,
Wm_keydown = 0x0100,
Wm_keyup-to-date = 0x0101,
Wm_char = 0x0102,
Wm_deadchar = 0x0103,
Wm_syskeydown = 0x0104,
Wm_syskeyup = 0x0105,
Wm_syschar = 0x0106,
Wm_sysdeadchar = 0x0107,
Wm_keylast = 0x0108,
Wm_ime_startcomposition = 0x010d,
Wm_ime_endcomposition = 0x010e,
Wm_ime_composition = 0x010f,
Wm_ime_keylast = 0x010f,
Wm_initdialog = 0x0110,
Wm_command = 0x0111,
Wm_syscommand = 0x0112,
Wm_timer = 0x0113,
Wm_hscroll = 0x0114,
Wm_vscroll = 0x0115,
Wm_initmenu = 0x0116,
Wm_initmenupopup = 0x0117,
Wm_menuselect = 0x011f,
Wm_menuchar = 0x0120,
Wm_enteridle= 0x0121,
Wm_menurbuttonup = 0x0122,
Wm_menudrag = 0x0123,
Wm_menugetobject = 0x0124,
Wm_uninitmenupopup = 0x0125,
Wm_menucommand = 0x0126,
Wm_ctlcolormsgbox = 0x0132,
Wm_ctlcoloredit = 0x0133,
Wm_ctlcolorlistbox = 0x0134,
Wm_ctlcolorbtn = 0 x0135,
Wm_ctlcolordlg = 0x0136,
Wm_ctlcolorscrollbar = 0x0137,
Wm_ctlcolorstatic = 0x0138,
Wm_mousemove = 0x0200,
Wm_lbuttondown = 0x0201,
Wm_lbuttonup = 0x0202,
Wm_lbuttondblclk = 0x0203,
Wm_rbuttondown = 0x0204,
Wm_rbuttonup = 0x0205,
Wm_rbuttondblclk = 0x0206,
Wm_mbuttondown = 0x0207,
Wm_mbuttonup = 0x0208,
Wm_mbuttondblclk = 0x0209,
Wm_mousewheel = 0x020a,
Wm_parentnotify = 0x0210,
Wm_entermenuloop = 0x0211,
Wm_exitmenuloop = 0x0212,
Wm_nextmenu = 0x0213,
Wm_sizing = 0x0214,
Wm_capturechanged = 0x0215,
Wm_moving = 0x0216,
Wm_devicechange = 0x0219,
Wm_mdicreate = 0x0220,
Wm_mdestroy = 0x0221,
Wm_mdiactivate = 0x0222,
Wm_mdirectstore = 0x0223,
Wm_mdinext = 0x0224,
Wm_mdimaximize = 0x0225,
Wm_mditile = 0x0226,
Wm_mdicascade = 0x0227,
Wm_mdiiconarrange = 0x0228,
Wm_mdigetactive = 0x0229,
Wm_mdisetmenu = 0x0230,
Wm_entersizemove = 0x0231,
Wm_exitsizemove = 0x0232,
Wm_dropfiles = 0x0233,
Wm_mdirectfreshmenu = 0x0234,
Wm_ime_setcontext = 0x0281,
Wm_ime_policy = 0x0282,
Wm_ime_control = 0x0283,
Wm_ime_compositionfull = 0x0284,
Wm_ime_select = 0x0285,
Wm_ime_char = 0x0286,
Wm_ime_request = 0x0288,
Wm_ime_keydown = 0x0290,
Wm_ime_keyup = 0x0291,
Wm_mousehover = 0x02a1,
Wm_mouseleave = 0x02a3,
Wm_cut = 0 x0 0300,
Wm_copy = 0x0301,
Wm_paste = 0x0302,
Wm_clear = 0x0303,
Wm_undo = 0x0304,
Wm_renderformat = 0x0305,
Wm_renderallformats = 0x0306,
Wm_destroyclipboard = 0x0307,
Wm_drawclipboard = 0x0308,
Wm_paintclipboard = 0x0309,
Wm_vscrollclipboard = 0x030a,
Wm_sizeclipboard = 0x030b,
Wm_askcbformatname = 0x030c,
Wm_changecbchain = 0x030d,
Wm_hscrollclipboard = 0x030e,
Wm_querynewpalette = 0x030f,
Wm_paletteischanging = 0x0310,
Wm_palettechanged = 0x0311,
Wm_hotkey = 0x0312,
Wm_print = 0x0317,
Wm_printclient = 0x0318,
Wm_handheldfirst = 0x0358,
Wm_handheldlast = 0x035f,
Wm_afxfirst = 0x0360,
Wm_afxlast = 0x037f,
Wm_penwinfirst = 0x0380,
Wm_penwinlast = 0x038f,
Wm_app = 0x8000,
Wm_user = 0x0400

SC _minimize 0xf020 minimizes the Message Value
SC _maximize 0xf030 maximize Message Value

& Hf001 ~ in VB ~ & Hf008 is the constant that changes the size of the form from the left, right, top, top left, top right, bottom right, bottom right, and bottom right. That is, 0xf001 ~ in VC, C ~ 0xf008.

0xf001 left

0xf002 right

0xf003 top

0xf004 topleft

0xf005 topright

0xf006 bottom

0xf007 bottomleft

0xf008 bottomright

 

By using these constants, you can control the freely changing size of the borderless form (sendmessage (wm_syscommand, 0xf001 ))

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.