Vcl.DBCtrls.TDBComboBox.ComboWndProc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ComboWndProc(var Message: TMessage; ComboWnd: HWnd;  ComboProc: Pointer); override;

C++

virtual void __fastcall ComboWndProc(Winapi::Messages::TMessage &Message, HWND ComboWnd, void * ComboProc);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBComboBox

Description


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

Vcl.DBCtrls.TDBComboBox.ComboWndProc inherits from Vcl.StdCtrls.TCustomCombo.ComboWndProc. All content below this line refers to Vcl.StdCtrls.TCustomCombo.ComboWndProc.

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

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.

See Also