-
Dialog-based app....
Ok... I'm not using MFC, and I'm using dialog templates for my dialogs, using CreateDialog to show the window. But if I put a more "advanced" control on my form... like a progress par, or tab control.. the form will not show.... i can add buttons, listbox's, etc... but none of the more "advanced" controls. The dialog simply wont show :( .... Whats the prob?
My other question is..... How do I add activex controls to program... When I goto project > add to project > components and controls..... and select the componenet.... says i cant add it to a project that doesnt support the class wizard or whatever. (im not using MFC) so how do i do it? and even once I add it.... is vc++ going to generate classes for me.. so i can use the control?
-
I have never worked with any Activex Control in C++ but if you want to add a standard Activex Control (no MFC), right click on your dialog box and then click on "Insert Activex Control".
-
OK, cool. that worked. But now i have same problem with activex controls as i do with the other controls such as the slider, progress bar, etc..... When i put them on my dialog... my dialog will not appear.
Also, how do I interact with the activex control, if VC++ doesnt generate the classes taht contain all the controls methods ;(
-
Well, i figured out the problem with the controls.... You need to call InitCommonControlsEx() .... which will allow you to use the controls. But I still dont know how to work with activex components.
-
Working with ActiveX controls without a library to do it for you is very hard. I recommend getting a good book on it. Or use MFC, if you can swallow it.