Link to home
Start Free TrialLog in
Avatar of Member_2_99151
Member_2_99151

asked on

Create instance of Windows Control Library in MFC View...

Hi,

I have an MFC View that I wish to display a Windows Control Libary on (in my case, a form to take some information)

Is this possible?  I have written a WCL in VB what is a simple form with a button on it, but have no idea how to add it to the View!!!

Any help would be appreciated...

James
Avatar of Member_2_99151
Member_2_99151

ASKER

Can anybody help me out with this one???  :-(
ASKER CERTIFIED SOLUTION
Avatar of mrduncanm
mrduncanm

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
oh and then I forget that if you are in the dialog editing mode you may have noticeed a toolbax. right click on that and "Add/Remove items"  from there you should be able to browse for your custom control. This will add a button to that toolbox you click on it and add it to your form and your off.

But then again the more MFC way would be to kick VB to the curb and do it all in MFC. After all it can do *almost* (had to put that in there or someone would complain) anything VB can and usually better.
CFormView ! ! ! !   That will do nicely!

I agree with the power of C - and program almost 100% in MFC...  It's just that I have existing controls in VB that would take some time to port accross...

Thanks for the help...

James