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. Problem with MFC code with ActiveX

Problem with MFC code with ActiveX

Scheduled Pinned Locked Moved C / C++ / MFC
c++comhelp
3 Posts 2 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.
  • H Offline
    H Offline
    harinath
    wrote on last edited by
    #1

    Hi, I created one dialog based application. When i draw listbox on dialog box and then any activeX partially overlapping the listbox. As at build time AcitiveX control is behind the Listbox control. But after running, AcitiveX comes to the front. I need to have ActiveX behind the listbox at runtime also. Or AcitveX contorl' position should be consistence in both run and build mode. I need to solve it very urgently, Please suggest some ideas. Harinath Reddy Bangalore, India-560076

    C 1 Reply Last reply
    0
    • H harinath

      Hi, I created one dialog based application. When i draw listbox on dialog box and then any activeX partially overlapping the listbox. As at build time AcitiveX control is behind the Listbox control. But after running, AcitiveX comes to the front. I need to have ActiveX behind the listbox at runtime also. Or AcitveX contorl' position should be consistence in both run and build mode. I need to solve it very urgently, Please suggest some ideas. Harinath Reddy Bangalore, India-560076

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Bring your listbox to top using BringWindowToTop member function in your OnInitDialog. So, your listbox will always be on your ActiveX. Hope this helps

      H 1 Reply Last reply
      0
      • C Cedric Moonen

        Bring your listbox to top using BringWindowToTop member function in your OnInitDialog. So, your listbox will always be on your ActiveX. Hope this helps

        H Offline
        H Offline
        harinath
        wrote on last edited by
        #3

        Thanks for the suggestion. But My problem is not only with a particular control or a specific order. I will tell the problem again.. If u create Just a MFC AppWizard "dialog based" application. Now if u draw any controls like: Listbox, edit control,combobox but not button and then ActiveX control overlapping with above control. Runtime appearence of ActiveX will be different ie activeX will come to the front. This behavior is just with MFC code. I want the consistence behabior of ActiveX with Other controls. I expect some idea from u. Once again thanks -Harinath Harinath Reddy HOneywell Technology Solutions Lab, Bangalore, India-560076

        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