A君问:PostMessage 和 SendMessage什么区别
B君答:
PostMessage只负责将消息放到消息队列中,不确定何时及是否处理
SendMessage要等到受到消息处理的返回码(DWord类型)后才继续
PostMessage执行后马上返回
SendMessage必须等到消息被处理后才会返回。
A君:不明白
B君:SendMessage看成ShowModal,PostMessage看成Show
A君:明白
获取Combobox 中输入框(Edit)的句柄
TEMP为combobox的窗体
HWND Sub=FindWindowEx(Temp,0,"ComboBoxEx32",NULL);
Sub=FindWindowEx(Sub,0,"ComboBox",NULL);
Sub=FindWindowEx(Sub,0,"Edit",NULL);
本文地址:http://com.8s8s.com/it/it26853.htm