Delphi DateTimePicker 输入时显示日期列表

2024-12-22 15:53:10
推荐回答(2个)
回答1:

dt1: TDateTimePicker;
SendMessage(dt1.Handle, WM_LBUTTONDOWN,MK_LBUTTON,dt1.WIDTH-5);

回答2:

onenter事件
sendmessage(datetimepicker1.handle, wm_lbuttondown, mk_lbutton, datetimepicker1.width-5);