VCL Delphi

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