how to disable a button in toolbar?
-
hi all, i created a new tool bar in my application with 5 buttons. when i click second button the 5th button should be disable .can u please tell me how to disable in coding. for a normal dialog item we use this code GetDlgItem(IDC_BUTTON)->EnableWindow(FALSE); but how to do this for tool bar button. thanks panthal
-
hi all, i created a new tool bar in my application with 5 buttons. when i click second button the 5th button should be disable .can u please tell me how to disable in coding. for a normal dialog item we use this code GetDlgItem(IDC_BUTTON)->EnableWindow(FALSE); but how to do this for tool bar button. thanks panthal
Have a look at
TB_ENABLEBUTTON
in MSDN.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.