Disable a button at run time
-
hai How can Idisable a button at run time depending on the inputs given by the user Thank u in advance:)
Use the
EnableWindow
function. Steve -
hai How can Idisable a button at run time depending on the inputs given by the user Thank u in advance:)
m_Button1.EnableWindow(0 or 1); GetDlgItem(IDC_BUTTON1)->EnableWindow(0 or 1);_**
**_
whitesky
-
hai How can Idisable a button at run time depending on the inputs given by the user Thank u in advance:)
Map the button to CButton (for ex m_button) using the classwizard. Now u can use m_button.EnableWindow(TRUE) to enable window or m_button.EnableWindow(FALSE) to disable the button.:)
-
hai How can Idisable a button at run time depending on the inputs given by the user Thank u in advance:)
manognya wrote:
w can Idisable a button at run time depending on the inputs given by the user
Is EnableWindow Api is of any Help!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You