|
-
Jun 30th, 2002, 03:45 PM
#1
Thread Starter
Lively Member
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?
-
Jun 30th, 2002, 04:00 PM
#2
PowerPoster
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".
-
Jun 30th, 2002, 04:30 PM
#3
Thread Starter
Lively Member
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 ;(
-
Jun 30th, 2002, 06:22 PM
#4
Thread Starter
Lively Member
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.
-
Jul 10th, 2002, 06:56 PM
#5
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|