GS
2014-04-01 00:43:22 UTC
Hi,
I'm just starting to use C++ (vs2008 Pro) after working with VB[A] for
some years. I'm trying to convert a VB6 project to C++ MFC so I can
continue to use my existing OCXs. These are a treVw.ocx, fileVw.ocx,
and Farpoint's Spread.ocx.
I have these working in a Dialog-based project right now, but I want a
splitter between the treeview and fileview OCXs. An added complication
is that the fileview and Spread OCX need to occupy the same real estate
on the form so switching views is just a matter of toggling their
visibility. I already have this working in the Dialog-based project,
but I need a splitter to adjust pane widths.
For clarity.., at this point I've only duplicated the UI. The only
other functionality added thus far is using CHM help, and so I'm at a
really early stage in the conversion. I want to get the UI functioning
as expected before adding any more content.
In VB a splitter is easily achieved using a label. My research into
doing this in C++ concludes that although it's doable, ..some very
complex (to me at this point) code is necessary.
The Explorer-style project already produces a project with a dialog
having a splitter that works as I need it to. I just don't know how to
code for my OCXs to occupy the panes as needed. (Nor do I know if the
OCXs will work in the default form!)
Any help/suggestions will be most appreciated!
Also, any recommendations for good books on C++ MFC programming would
be most helpful...
I'm just starting to use C++ (vs2008 Pro) after working with VB[A] for
some years. I'm trying to convert a VB6 project to C++ MFC so I can
continue to use my existing OCXs. These are a treVw.ocx, fileVw.ocx,
and Farpoint's Spread.ocx.
I have these working in a Dialog-based project right now, but I want a
splitter between the treeview and fileview OCXs. An added complication
is that the fileview and Spread OCX need to occupy the same real estate
on the form so switching views is just a matter of toggling their
visibility. I already have this working in the Dialog-based project,
but I need a splitter to adjust pane widths.
For clarity.., at this point I've only duplicated the UI. The only
other functionality added thus far is using CHM help, and so I'm at a
really early stage in the conversion. I want to get the UI functioning
as expected before adding any more content.
In VB a splitter is easily achieved using a label. My research into
doing this in C++ concludes that although it's doable, ..some very
complex (to me at this point) code is necessary.
The Explorer-style project already produces a project with a dialog
having a splitter that works as I need it to. I just don't know how to
code for my OCXs to occupy the panes as needed. (Nor do I know if the
OCXs will work in the default form!)
Any help/suggestions will be most appreciated!
Also, any recommendations for good books on C++ MFC programming would
be most helpful...
--
Garry
Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
Garry
Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion