10-08-2004, 07:43 PM
If button is separate control (can be captured with "Find window" dialog), use EnableWindow function. If it is button in standard toolbar (control with class "ToolbarWindow32"), SendMessage TB_ENABLEBUTTON. Otherwise, I don't know. Even if you will successfully enable button, application probably will think that it is disabled.