rmassa
asked on
Why is the default Rebar always disabled
I created an Application using AppWizard (in VC++6) using "Internet Explorer Rebars". Everything works fine.
Then, I wanted to add a button to the IDR_MAINFRAME resource. This dialog resource is connected to a CDialogBar object... when I compile and run the project, however, the button is displayed as disabled. At no part in the program I set the style disabled, though. Any suggestions?
Then, I wanted to add a button to the IDR_MAINFRAME resource. This dialog resource is connected to a CDialogBar object... when I compile and run the project, however, the button is displayed as disabled. At no part in the program I set the style disabled, though. Any suggestions?
The button is disabled because there is no control associated with that resource. Use the classwizard and assign that button resource to a CButton .. and then add the BN_CLICKED and UPDATE_COMMAND_UI Message handlers for it. Then you are honme free....
ASKER
Thank you, naveenkohli!
How do I give you the points, now? (Guess you have to post an answer or something)
How do I give you the points, now? (Guess you have to post an answer or something)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanx again :-)