D delphigbg Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-15 #1 向窗体发个什么消息,组合框未关闭的会自动关闭呢?
X [xiaopei] Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-15 #2 PostMessage(ComboBox1.Handle,WM_KILLFOCUS,0,0); 或者 PostMessage(Handle,WM_LBUTTONDOWN,0,0);
D delphigbg Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-15 #3 主要是現在不能獲得該控件,我做的是pagecontrol的多頁窗體
D DIGUA Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-15 #4 FEditWindow:=FindWindowEx(FMainWindowHandle,0,PChar('Edit'),nil); 名称用Spy++找吧
D delphigbg Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-15 #5 窗體我找得到,就是找不到該窗體哪個是當前的控件,用activecontrol出錯。
X [xiaopei] Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-15 #6 不用获取ComboBox的句柄的,你只须获取到主窗口的句柄,向主窗口句柄发送一个WM_LBUTTONDOWN消息就行了。 hWindow := FindWindow('WindowClassName','WindowCaptionName'); PostMessage(hWindow,WM_LBUTTONDOWN,0,0);
不用获取ComboBox的句柄的,你只须获取到主窗口的句柄,向主窗口句柄发送一个WM_LBUTTONDOWN消息就行了。 hWindow := FindWindow('WindowClassName','WindowCaptionName'); PostMessage(hWindow,WM_LBUTTONDOWN,0,0);
D delphigbg Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-15 #7 發過不行的,我把那個窗體停靠在pagecontrol上。
W wr960204 Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-16 #8 SendMessage(FormXXX.Handle, WM_NCLBUTTONDOWN, 0, 0); 告诉窗体非客户区被点击了
A andrew57 Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-16 #9 可以发消息给form 然后在form里面写相应的message处理函数来处理 combobox有droppeddown属性
L lingsg Unregistered / Unconfirmed GUEST, unregistred user! 2008-08-11 #10 SendMessage(ComboBox1.Handle, CB_SHOWDROPDOWN, 0, 0);