RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomCombo.ComboWndProc Method

Responds to Windows messages sent to the edit control or drop-down list.

Pascal
procedure ComboWndProc(var Message: TMessage; ComboWnd: HWnd; ComboProc: TWindowProcPtr); virtual;
C++
virtual __fastcall ComboWndProc(TMessage Message, HWnd ComboWnd, TWindowProcPtr ComboProc);

ComboWndProc handles the common processing of Windows messages sent to the edit region or list portion of the combo box. It is called by the EditWndProc and ListWndProc methods to take care of all processing that is not specific to the edit region or drop-down list. 

The Message parameter describes the Windows message. The ComboWnd parameter is the windows handle for the edit region or list. The ComboProc parameter is a pointer to the default window procedure for the window that received the message. ComboWndProc provides default responses to focus events, mouse events, and key strokes.  

Override ComboWndProc to change the way the combo box responds to Windows messages. When overriding ComboWndProc, be sure to call the parent class's method to process all unhandled messages.

Note: Do not confuse ComboWndProc with the WndProc method. ComboWndProc responds to messages that are sent to the edit region or drop-down list. WndProc responds to messages sent to the combo box itself.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!