T txbdir Unregistered / Unconfirmed GUEST, unregistred user! 2007-08-19 #1 在得到一个按钮句柄的情况下,如何用使用SENDMESSAGE中的VM_ENABLE使得该按钮变得可用和可见呢?
Z zqw0117 Unregistered / Unconfirmed GUEST, unregistred user! 2007-08-19 #3 SendMessage(YourHandleThatYouWantToSetItEnabled, VM_ENABLE, Longint(True), 0); or SendMessage(YourHandleThatYouWantToSetItEnabled, VM_ENABLE, Longint(False), 0); So easy!
SendMessage(YourHandleThatYouWantToSetItEnabled, VM_ENABLE, Longint(True), 0); or SendMessage(YourHandleThatYouWantToSetItEnabled, VM_ENABLE, Longint(False), 0); So easy!
Z zqw0117 Unregistered / Unconfirmed GUEST, unregistred user! 2007-08-19 #7 其实还有单独的API的 EnableWindow 这个可以单独用。
T txbdir Unregistered / Unconfirmed GUEST, unregistred user! 2007-08-19 #8 我试了一下, sendmessage(button2.Handle,WM_ENABLE, Longint(False), 0);这个代码不行啊!没有反应得!True试过也没有反应!
T txbdir Unregistered / Unconfirmed GUEST, unregistred user! 2007-08-19 #9 EnableWindow(button2.Handle, True); showwindow(button2.Handle,longint(True)); 谢谢了!