Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to use ActiveX without dialog ?

How to use ActiveX without dialog ?

Scheduled Pinned Locked Moved C / C++ / MFC
comhelptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 3595
    wrote on last edited by
    #1

    Hello All ! I want to write an application use ActiveX, but I do not want insert in Dialog. And I think that to do this by two way: 1. Use dialog and insert ActiveX normal, but set Dialog for hide. (Application base on Dialog, only one Dialog) 2. Maybe use only ActiveX in project ?! Need some help. Thank you very much!

    H 1 Reply Last reply
    0
    • U User 3595

      Hello All ! I want to write an application use ActiveX, but I do not want insert in Dialog. And I think that to do this by two way: 1. Use dialog and insert ActiveX normal, but set Dialog for hide. (Application base on Dialog, only one Dialog) 2. Maybe use only ActiveX in project ?! Need some help. Thank you very much!

      H Offline
      H Offline
      Hussam Ahmad
      wrote on last edited by
      #2

      Hello! Here is a way to do it. 1- Add the ActiveX to your project and you will get a .h and .cpp file that descripes the control. 2- Let us say the class is CMyCoontrol CMyControl ctrlActiveX; if(!ctrlActiveX.Create(NULL, WS_CHILD, CRect(0,0,0,0), AfxGetApp ()->GetMainWnd(), WM_USER + 9999, NULL, FALSE, NULL)) { AfxMessageBox("Could not create object"); return FALSE; } // Control is created successfully do your work here ......

      K 1 Reply Last reply
      0
      • H Hussam Ahmad

        Hello! Here is a way to do it. 1- Add the ActiveX to your project and you will get a .h and .cpp file that descripes the control. 2- Let us say the class is CMyCoontrol CMyControl ctrlActiveX; if(!ctrlActiveX.Create(NULL, WS_CHILD, CRect(0,0,0,0), AfxGetApp ()->GetMainWnd(), WM_USER + 9999, NULL, FALSE, NULL)) { AfxMessageBox("Could not create object"); return FALSE; } // Control is created successfully do your work here ......

        K Offline
        K Offline
        Kurt 0
        wrote on last edited by
        #3

        Hi just add the ActivX to your project (Project / Add to project / Components / ActiveX. This will create a cpp and a header file and you can just call Create(..). No need for a dialog at all. Kurt

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups