Link to home
Start Free TrialLog in
Avatar of rmassa
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?
Avatar of naveenkohli
naveenkohli

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....
Avatar of rmassa

ASKER

Thank you, naveenkohli!

How do I give you the points, now? (Guess you have to post an answer or something)
ASKER CERTIFIED SOLUTION
Avatar of naveenkohli
naveenkohli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rmassa

ASKER

Thanx again :-)