Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Control Message Handlers
◄CWnd►                                        ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  The following message handlers require an entry in a message map.
 
  ◄OnCharToItem►    Called by a child list box with the
                    ◄LBS_WANTKEYBOARDINPUT► style in response to a
                    ◄WM_CHAR► message.
 
  ◄OnCompareItem►   Called to determine the relative position of a new
                    item in a sorted owner-draw combo or list box.
 
  ◄OnDeleteItem►    Called when an owner-draw list box or combo box is
                    destroyed or when items are removed from the control
                    by calls to ◄CComboBox::DeleteString► or
                    ◄CComboBox::ResetContent►.
 
  ◄OnDrawItem►      Called when a visual aspect of an owner-draw button
                    control, combo box control, list box control, or menu
                    needs to be drawn.
 
  ◄OnGetDlgCode►    Called for a control so the control can process ARROW
                    key and TAB key input itself, although Windows
                    normally handles this input.
 
  ◄OnMeasureItem►   Called for an owner-draw button, combo box, list box,
                    or menu item when the control is created. CWnd informs
                    Windows of the dimensions of the control.
 
  ◄OnVKeyToItem►    Called by a list box owned by CWnd in response to a
                    ◄WM_KEYDOWN► message.
 
 
                                     -♦-