Link to home
Start Free TrialLog in
Avatar of jhattingh
jhattingh

asked on

SDI App - split views... Problem

After the wizard created my sdi app, i modified the CLeftView to be derived from CFormView. I've got it working ok, but although ClassWizard can add stuff in the message-maps tab, it can't add member variables. Why? How do I fix this?
Avatar of nil_dib
nil_dib

member variables of control elements?
Avatar of jhattingh

ASKER

Yes! e.g. I have a treectrl, and without classwizard, I have to manually create() which is a bit of a pain!
what excatly is the problem?
you can't see the treectrl in the wizzard member panel?

nil_dib
Yep - totally blank.
Try rebuilding the ClassWizard file. Delete the .CLW file from the project directory & then run ClassWizard.
Didn't work :(

Thanks all the same for your response
If i understand correctly, you have derived a class for the left pane... tell me, do your class files include the AFX_DATA_MAP and AFX_DATA_INIT macros?? If not, add them and rebuild the ClassWizard file and see if the problem goes away...
That's done it - thanks CaptainKirk. Please propose answer.

Thank you all for your help.

LWJason
ASKER CERTIFIED SOLUTION
Avatar of captainkirk
captainkirk

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
Thanks mate