Delphi: Detect if ComboBox is dropped down

PHOTO EMBED

Mon Aug 29 2022 18:34:38 GMT+0000 (Coordinated Universal Time)

Saved by @marcopinero #delphi

Function DetectIsOpen(Cb: TCombobox): Boolean;
Begin
  Result := SendMessage(ComboBox1.Handle,CB_GETDROPPEDSTATE,0,0)=1;
End;
content_copyCOPY

Detect if TComboBox is dropped down (un-tested)