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. Need Help on ActiveX Control

Need Help on ActiveX Control

Scheduled Pinned Locked Moved C / C++ / MFC
comdockerhelpquestion
12 Posts 5 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.
  • M manish patel

    Hello All Is it possible to get Handle to the Container window(Internet Explorer) of the ActiveX Control? Thanks in advance

    Manish Patel. B.E. - Information Technology.

    S Offline
    S Offline
    Stephen Hewitt
    wrote on last edited by
    #2

    The IOleInPlaceFrame[^] interface is one of the key interfaces used by the ActiveX control to communicate with its container (use the IOleInPlaceSite::GetWindowContext[^] to get hold of it). It's derived from IOleWindow[^] which has a method called IOleWindow::GetWindow[^]: this should enable you to get the job done.

    Steve

    modified on Friday, February 29, 2008 3:07 AM

    M 1 Reply Last reply
    0
    • S Stephen Hewitt

      The IOleInPlaceFrame[^] interface is one of the key interfaces used by the ActiveX control to communicate with its container (use the IOleInPlaceSite::GetWindowContext[^] to get hold of it). It's derived from IOleWindow[^] which has a method called IOleWindow::GetWindow[^]: this should enable you to get the job done.

      Steve

      modified on Friday, February 29, 2008 3:07 AM

      M Offline
      M Offline
      manish patel
      wrote on last edited by
      #3

      Thanks for your kind reply. Actualy i want to minimize internet explorer wheneve my activex is loaded in IE. I am using this: ::ShowWindow(GetWindow(GW_OWNER)->GetSafeHwnd(), SW_MINIMIZE); But This function gets fail. Is it correct way to do this? please provide me any solution to it. Once again Thanks Steve

      Manish Patel. B.E. - Information Technology.

      S 1 Reply Last reply
      0
      • M manish patel

        Thanks for your kind reply. Actualy i want to minimize internet explorer wheneve my activex is loaded in IE. I am using this: ::ShowWindow(GetWindow(GW_OWNER)->GetSafeHwnd(), SW_MINIMIZE); But This function gets fail. Is it correct way to do this? please provide me any solution to it. Once again Thanks Steve

        Manish Patel. B.E. - Information Technology.

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #4

        You don’t mention what framework you’re using (if any)?

        Steve

        M 1 Reply Last reply
        0
        • S Stephen Hewitt

          You don’t mention what framework you’re using (if any)?

          Steve

          M Offline
          M Offline
          manish patel
          wrote on last edited by
          #5

          No, i am not using any framework My activex is in pure MFC.

          Manish Patel. B.E. - Information Technology.

          R 1 Reply Last reply
          0
          • M manish patel

            No, i am not using any framework My activex is in pure MFC.

            Manish Patel. B.E. - Information Technology.

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #6

            manish.patel wrote:

            No, i am not using any framework My activex is in pure MFC.

            ROTFL. :laugh:

            Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

            M 1 Reply Last reply
            0
            • R Rajesh R Subramanian

              manish.patel wrote:

              No, i am not using any framework My activex is in pure MFC.

              ROTFL. :laugh:

              Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

              M Offline
              M Offline
              manish patel
              wrote on last edited by
              #7

              Rajesh R Subramanian wrote:

              ROTFL.

              What you want to say??

              Manish Patel. B.E. - Information Technology.

              R R 2 Replies Last reply
              0
              • M manish patel

                Rajesh R Subramanian wrote:

                ROTFL.

                What you want to say??

                Manish Patel. B.E. - Information Technology.

                R Offline
                R Offline
                Rajkumar R
                wrote on last edited by
                #8

                I am also new to these abbreviation, but the WordWeb free dictionary helps me, ROTFL - Rolling on the floor laughing. I guess, he meant MFC is also a framework.

                1 Reply Last reply
                0
                • M manish patel

                  Rajesh R Subramanian wrote:

                  ROTFL.

                  What you want to say??

                  Manish Patel. B.E. - Information Technology.

                  R Offline
                  R Offline
                  Rajesh R Subramanian
                  wrote on last edited by
                  #9

                  MFC actually *is* a framework. :)

                  Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                  M 1 Reply Last reply
                  0
                  • R Rajesh R Subramanian

                    MFC actually *is* a framework. :)

                    Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                    M Offline
                    M Offline
                    manish patel
                    wrote on last edited by
                    #10

                    Thanks for your Guidance. Up to now I am considering MFC as a Microsoft Foundation Classes. I don’t know It is a “Framework”

                    Manish Patel. B.E. - Information Technology.

                    R CPalliniC 2 Replies Last reply
                    0
                    • M manish patel

                      Thanks for your Guidance. Up to now I am considering MFC as a Microsoft Foundation Classes. I don’t know It is a “Framework”

                      Manish Patel. B.E. - Information Technology.

                      R Offline
                      R Offline
                      Rajesh R Subramanian
                      wrote on last edited by
                      #11

                      manish.patel wrote:

                      Up to now I am considering MFC as a Microsoft Foundation Classes.

                      You're just looking at the abbreviation. You need to read up a little bit to understand that MFC is more than a bunch of classes. For example, you don't write a main() function for a program that you write in MFC, do you? So, does that mean there is no main function? You get to build a doc/view app with menus, windows, print previewing capability, etc., just with mouse clicks! Can you do it just with a few classes alone? The framework does everything for you behind the scenes. :) If that interests you, I'd recommend a few books - Programming Windows with MFC, MFC Internals. Also, see MFC in Wikipedia[^] Rajesh

                      1 Reply Last reply
                      0
                      • M manish patel

                        Thanks for your Guidance. Up to now I am considering MFC as a Microsoft Foundation Classes. I don’t know It is a “Framework”

                        Manish Patel. B.E. - Information Technology.

                        CPalliniC Offline
                        CPalliniC Offline
                        CPallini
                        wrote on last edited by
                        #12

                        Didn't ever read MFC documentation? It is full of sentences such as "The framework will call...". Also many MFC global functions, like AfxGetApp, have the Afx (i.e. Application Framework EXtension) prefix. :)

                        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                        In testa che avete, signor di Ceprano?

                        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