Mega Code Archive

 
Categories / Delphi / VCL
 

Determining if a combobox is in dropped state

Title: Determining if a combobox is in dropped state Question: How can I determine if a ComboBox is in a dropped down state Answer: Send a CB_GETDROPPEDSTATE message to the ComboBox. if SendMessage(ComboBox1.Handle, CB_GETDROPPEDSTATE, 0, 0) = 1 then begin {do someth} end;