Results 1 to 5 of 5

Thread: Dialog-based app....

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    109

    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?

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    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".
    Baaaaaaaaah

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    109
    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 ;(

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    109
    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.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width