小智 6
您可以将此消息放入对象OnEnter的事件中TCombobox:
// Suppose the combobox control name is ComboBox
procedure TMainForm.ComboBoxEnter(Sender: TObject);
begin
PostMessage(ComboBox.Handle, CB_SETEDITSEL, Cardinal(-1), 0);
end;
Run Code Online (Sandbox Code Playgroud)