Windows message ing function prototype

Source: Internet
Author: User

Message map functions in the Microsoft Foundation Class Library

 

Handlers for wm_command messages map entry function prototype

On_command (<ID >,< memberfxn>) afx_msg void memberfxn ();
On_command_ex (<ID >,< memberfxn>) afx_msg bool memberfxn (uint );
On_command_ex_range (<ID>, <idlast>, <memberfxn>) afx_msg bool memberfxn (uint );
On_command_range (<ID >,< idlast>, <memberfxn>) afx_msg void memberfxn (uint );
On_update_command_ui (<ID>, <memberfxn>) afx_msg void memberfxn (ccmdui *);
On_update_command_ui_range (<ID>, <idlast>, <memberfxn>) afx_msg void memberfxn (ccmdui *);
On_update_command_ui_reflect (<memberfxn>) afx_msg void memberfxn (ccmdui *);
Handlers for Child Window notification messages
Map entry function prototype
Generic control notification Codes
On_control (<wnotifycode>, <ID>, <memberfxn>) afx_msg void memberfxn ();
On_control_range (<wnotifycode>, <ID> <idlast>, <memberfxn>) afx_msg void memberfxn (uint );
On_control_reflect (<wnotifycode>, <memberfxn>) afx_msg void memberfxn ();
On_control_reflect_ex (<wnotifycode>, <memberfxn>) afx_msg bool memberfxn ();
On_policy (<wnotifycode>, <ID>, <memberfxn>) afx_msg void memberfxn (nmhdr *, lresult *);
On_policy_ex (<wnotifycode>, <ID>, <memberfxn>) afx_msg bool memberfxn (uint, nmhdr *, lresult *);
On_policy_ex_range (<wnotifycode>, <ID>, <idlast>, <memberfxn>) afx_msg bool memberfxn (uint, nmhdr *, lresult *);
On_policy_range (<wnotifycode>, <ID>, <idlast>, <memberfxn>) afx_msg void memberfxn (uint, nmhdr *, lresult *);
On_policy_reflect (<wnotifycode>, <memberfxn>) afx_msg void memberfxn (nmhdr *, lresult *);
On_policy_reflect_ex (<wnotifycode>, <memberfxn>) afx_msg bool memberfxn (nmhdr *, lresult *);
User button notification Codes
On_bn_clicked (<ID >,< memberfxn>) afx_msg void memberfxn ();
On_bn_doubleclicked (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_bn_killfocus (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_bn_setfocus (<ID>, <memberfxn>) afx_msg void memberfxn ();
Combo box notification Codes
On_cbn_closeup (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_cbn_dblclk (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_cbn_dropdown (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_cbn_editchange (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_cbn_editupdate (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_cbn_errspace (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_cbn_killfocus (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_cbn_selchange (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_cbn_selendcancel (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_cbn_selendok (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_cbn_setfocus (<ID>, <memberfxn>) afx_msg void memberfxn ();
Check list box notification Codes
On_clbn_chkchange (<ID>, <memberfxn>) afx_msg void memberfxn ();
Edit Control notification Codes
On_en_change (<ID >,< memberfxn>) afx_msg void memberfxn ();
On_en_errspace (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_en_hscroll (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_en_killfocus (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_en_maxtext (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_en_setfocus (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_en_update (<ID >,< memberfxn>) afx_msg void memberfxn ();
On_en_vscroll (<ID>, <memberfxn>) afx_msg void memberfxn ();
List box notification Codes
On_lbn_dblclk (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_lbn_errspace (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_lbn_killfocus (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_lbn_selcancel (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_lbn_selchange (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_lbn_setfocus (<ID>, <memberfxn>) afx_msg void memberfxn ();
Static Control notification Codes
On_stn_clicked (<ID >,< memberfxn>) afx_msg void memberfxn ();
On_stn_dblclk (<ID>, <memberfxn>) afx_msg void memberfxn ();
On_stn_disable (<ID >,< memberfxn>) afx_msg void memberfxn ();
On_stn_enable (<ID >,< memberfxn>) afx_msg void memberfxn ();
Handlers for window notification messages
Map entry function prototype
On_wm_activate () afx_msg void onactivate (uint, cwnd *, bool );
On_wm_activateapp () afx_msg void onactivateapp (bool, htask );
On_wm_askcbformatname () afx_msg void onaskcbformatname (uint, lptstr );
On_wm_cancelmode () afx_msg void oncancelmode ();
On_wm_capturechanged () afx_msg void oncapturechanged (cwnd *);
On_wm_changecbchain () afx_msg void onchangecbchain (hwnd, hwnd );
On_wm_char () afx_msg void onchar (uint, uint, uint );
On_wm_chartoitem () afx_msg int onchartoitem (uint, clistbox *, uint );
On_wm_chartoitem_reflect () afx_msg int chartoitem (uint, uint );
On_wm_childactivate () afx_msg void onchildactivate ();
On_wm_close () afx_msg void onclose ();
On_wm_compacting () afx_msg void oncompacting (uint );
On_wm_compareitem () afx_msg int oncompareitem (INT, lpcompareitemstruct );
On_wm_compareitem_reflect () afx_msg int compareitem (lpcompareitemstruct );
On_wm_contextmenu () afx_msg void oncontextmenu (cwnd *, cpoint );
On_wm_copydata () afx_msg bool oncopydata (cwnd *, copydatastruct *);
On_wm_create () afx_msg int oncreate (lpcreatestruct );
On_wm_ctlcolor () afx_msg hbrush onctlcolor (CDC *, cwnd *, uint );
On_wm_ctlcolor_reflect () afx_msg hbrush ctlcolor (CDC *, uint );
On_wm_deadchar () afx_msg void ondeadchar (uint, uint, uint );
On_wm_deleteitem () afx_msg void ondeleteitem (INT, lpdeleteitemstruct );
On_wm_deleteitem_reflect () afx_msg void deleteitem (lpdeleteitemstruct)
On_wm_destroy () afx_msg void ondestroy ();
On_wm_destroyclipboard () afx_msg void ondestroyclipboard ();
On_wm_devicechange () afx_msg bool ondevicechange (uint, DWORD );
On_wm_devmodechange () afx_msg void ondevmodechange (lptstr );
On_wm_drawclipboard () afx_msg void ondrawclipboard ();
On_wm_drawitem () afx_msg void ondrawitem (INT, lpdrawitemstruct );
On_wm_drawitem_reflect () afx_msg void drawitem (lpdrawitemstruct );
On_wm_dropfiles () afx_msg void ondropfiles (hdrop );
On_wm_enable () afx_msg void onenable (bool );
On_wm_endsession () afx_msg void onendsession (bool );
On_wm_enteridle () afx_msg void onenteridle (uint, cwnd *);
On_wm_entermenuloop () afx_msg void onentermenuloop (bool );
On_wm_erasebkgnd () afx_msg bool onerasebkgnd (CDC *);
On_wm_exitmenuloop () afx_msg void onexitmenuloop (bool );
On_wm_fontchange () afx_msg void onfontchange ();
On_wm_getdlgcode () afx_msg uint ongetdlgcode ();
On_wm_getminmaxinfo () afx_msg void ongetminmaxinfo (minmaxinfo *);
On_wm_helpinfo () afx_msg bool onhelpinfo (helpinfo *);
On_wm_hscroll () afx_msg void onhscroll (uint, uint, cscrollbar *);
On_wm_hscroll_reflect () afx_msg void hscroll (uint, uint );
On_wm_hscrollclipboard () afx_msg void onhscrollclipboard (cwnd *, uint, uint );
On_wm_iconerasebkgnd () afx_msg void oniconerasebkgnd (CDC *);
On_wm_initmenu () afx_msg void oninitmenu (cmenu *);
On_wm_initmenupopup () afx_msg void oninitmenupopup (cmenu *, uint, bool );
On_wm_keydown () afx_msg void onkeydown (uint, uint, uint );
On_wm_keyup () afx_msg void onkeyup (uint, uint, uint );
On_wm_killfocus () afx_msg void onkillfocus (cwnd *);
On_wm_lbuttondblclk () afx_msg void onlbuttondblclk (uint, cpoint );
On_wm_lbuttondown () afx_msg void onlbuttondown (uint, cpoint );
On_wm_lbuttonup () afx_msg void onlbuttonup (uint, cpoint );
On_wm_mbuttondblclk () afx_msg void onmbuttondblclk (uint, cpoint );
On_wm_mbuttondown () afx_msg void onmbuttondown (uint, cpoint );
On_wm_mbuttonup () afx_msg void onmbuttonup (uint, cpoint );
On_wm_mdiactivate () afx_msg void onmdiactivate (bool, cwnd *, cwnd *);
On_wm_measureitem () afx_msg void onmeasureitem (INT, lpmeasureitemstruct );
On_wm_measureitem_reflect () afx_msg void measureitem (lpmeasureitemstruct );
On_wm_menuchar () afx_msg lresult onmenuchar (uint, uint, cmenu *);
On_wm_menuselect () afx_msg void onmenuselect (uint, uint, hmenu );
On_wm_mouseactivate () afx_msg int onmouseactivate (cwnd *, uint, uint );
On_wm_mousemove () afx_msg void onmousemove (uint, cpoint );
On_wm_mousewheel () afx_msg bool onmousewheel (uint, short, cpoint );
On_wm_move () afx_msg void onmove (INT, INT );
On_wm_moving () afx_msg void onmoving (uint, lprect );
On_wm_ncactivate () afx_msg bool onncactivate (bool );
On_wm_nccalcsize () afx_msg void onnccalcsize (bool, nccalcsize_params *);
On_wm_nccreate () afx_msg bool onnccreate (lpcreatestruct );
On_wm_ncdestroy () afx_msg void onncdestroy ();
On_wm_nchittest () afx_msg uint onnchittest (cpoint );
On_wm_nclbuttondblclk () afx_msg void onnclbuttondblclk (uint, cpoint );
On_wm_nclbuttondown () afx_msg void onnclbuttondown (uint, cpoint );
On_wm_nclbuttonup () afx_msg void onnclbuttonup (uint, cpoint );
On_wm_ncmbuttondblclk () afx_msg void onncmbuttondblclk (uint, cpoint );
On_wm_ncmbuttondown () afx_msg void onncmbuttondown (uint, cpoint );
On_wm_ncmbuttonup () afx_msg void onncmbuttonup (uint, cpoint );
On_wm_ncmousemove () afx_msg void onncmousemove (uint, cpoint );
On_wm_ncpaint () afx_msg void onncpaint ();
On_wm_ncrbuttondblclk () afx_msg void onncrbuttondblclk (uint, cpoint );
On_wm_ncrbuttondown () afx_msg void onncrbuttondown (uint, cpoint );
On_wm_ncrbuttonup () afx_msg void onncrbuttonup (uint, cpoint );
On_wm_paint () afx_msg void onpaint ();
On_wm_paintclipboard () afx_msg void onpaintclipboard (cwnd *, hglobal );
On_wm_palettechanged () afx_msg void onpalettechanged (cwnd *);
On_wm_paletteischanging () afx_msg void onpaletteischanging (cwnd *);
On_wm_parentnotify () afx_msg void onparentnotify (uint, lparam );
On_wm_parentpolicy_reflect () afx_msg void parentnotify (uint, lparam );
On_wm_querydragicon () afx_msg hcursor onquerydragicon ();
On_wm_queryendsession () afx_msg bool onqueryendsession ();
On_wm_querynewpalette () afx_msg bool onquerynewpalette ();
On_wm_queryopen () afx_msg bool onqueryopen ();
On_wm_rbuttondblclk () afx_msg void onrbuttondblclk (uint, cpoint );
On_wm_rbuttondown () afx_msg void onrbuttondown (uint, cpoint );
On_wm_rbuttonup () afx_msg void onrbuttonup (uint, cpoint );
On_wm_renderallformats () afx_msg void onrenderallformats ();
On_wm_renderformat () afx_msg void onrenderformat (uint );
On_wm_setcursor () afx_msg bool onsetcursor (cwnd *, uint, uint );
On_wm_setfocus () afx_msg void onsetfocus (cwnd *);
On_wm_settingchange () afx_msg void onsettingchange (uint, lpctstr );
On_wm_showwindow () afx_msg void onshowwindow (bool, uint );
On_wm_size () afx_msg void onsize (uint, Int, INT );
On_wm_sizeclipboard () afx_msg void onsizeclipboard (cwnd *, hglobal );
On_wm_sizing () afx_msg void onsizing (uint, lprect );
On_wm_spoolerstatus () afx_msg void onspoolerstatus (uint, uint );
On_wm_stylechanged () afx_msg void onstylechanged (INT, lpstylestruct );
On_wm_stylechanging () afx_msg void onstylechanging (INT, lpstylestruct );
On_wm_syschar () afx_msg void onsyschar (uint, uint, uint );
On_wm_syscolorchange () afx_msg void onsyscolorchange ();
On_wm_syscommand () afx_msg void onsyscommand (uint, lparam );
On_wm_sysdeadchar () afx_msg void onsysdeadchar (uint, uint, uint );
On_wm_syskeydown () afx_msg void onsyskeydown (uint, uint, uint );
On_wm_syskeyup () afx_msg void onsyskeyup (uint, uint, uint );
On_wm_tcard () afx_msg void ontcard (uint, DWORD );
On_wm_timechange () afx_msg void ontimechange ();
On_wm_timer () afx_msg void ontimer (uint );
On_wm_vkeytoitem () afx_msg int onvkeytoitem (uint, clistbox *, uint );
On_wm_vkeytoitem_reflect () afx_msg int vkeytoitem (uint, uint );
On_wm_vscroll () afx_msg void onvscroll (uint, uint, cscrollbar *);
On_wm_vscroll_reflect () afx_msg void vscroll (uint, uint );
On_wm_vscrollclipboard () afx_msg void onvscrollclipboard (cwnd *, uint, uint );
On_wm_windowposchanged () afx_msg void onwindowposchanged (windowpos *);
On_wm_windowposchanging () afx_msg void onwindowposchanging (windowpos *);
On_wm_wininichange () afx_msg void onwininichange (lpctstr );

User-defined message codes map entry function prototype

On_message (<message >,< memberfxn>) afx_msg lresult memberfxn (wparam, lparam );
On_registered_message (<nmessagevariable>, <memberfxn>) afx_msg lresult memberfxn (wparam, lparam );
On_registered_threadmessage (<nmessagevariable>, <memberfxn>) afx_msg void memberfxn (wparam, lparam );
On_thread_message (<message >,< memberfxn>) afx_msg void memberfxn (wparam, lparam );

 

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.