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. About ActiveX Control

About ActiveX Control

Scheduled Pinned Locked Moved C / C++ / MFC
comtutorialquestion
6 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.
  • M Offline
    M Offline
    manish patel
    wrote on last edited by
    #1

    Hello I want to add System Tray menu in activex control, but i dont know how to do it? Any body tell me is it possible to do it? And possible then let me know how to do it? Thanks in advance

    Manish Patel. B.E. - Information Technology.

    D 1 Reply Last reply
    0
    • M manish patel

      Hello I want to add System Tray menu in activex control, but i dont know how to do it? Any body tell me is it possible to do it? And possible then let me know how to do it? Thanks in advance

      Manish Patel. B.E. - Information Technology.

      D Offline
      D Offline
      Don Box
      wrote on last edited by
      #2

      See in MSDN the following:

      NOTIFYICONDATA //Struct
      Shell_NotifyIcon ()

      Come online at:- jubinc@skype

      M 1 Reply Last reply
      0
      • D Don Box

        See in MSDN the following:

        NOTIFYICONDATA //Struct
        Shell_NotifyIcon ()

        Come online at:- jubinc@skype

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

        Thanks for your reply. Now another problem is how to get HINSTANCE in activex control? I can get it in win32 application but how to get it in activex control? Please help me out

        Manish Patel. B.E. - Information Technology.

        N 1 Reply Last reply
        0
        • M manish patel

          Thanks for your reply. Now another problem is how to get HINSTANCE in activex control? I can get it in win32 application but how to get it in activex control? Please help me out

          Manish Patel. B.E. - Information Technology.

          N Offline
          N Offline
          Nitheesh George
          wrote on last edited by
          #4

          Hi you can use AfxGetInstanceHandle() if u r using MFC or if it is Win32 HANDLE hModule in dllmain function is the HINSTANCE.

          M 1 Reply Last reply
          0
          • N Nitheesh George

            Hi you can use AfxGetInstanceHandle() if u r using MFC or if it is Win32 HANDLE hModule in dllmain function is the HINSTANCE.

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

            Thank you for reply i am not getting your reply. I want to handle all mouse events that are occuring in windows(out side of activex control also). Is it possible? if it then how can i do it?

            Manish Patel. B.E. - Information Technology.

            N 1 Reply Last reply
            0
            • M manish patel

              Thank you for reply i am not getting your reply. I want to handle all mouse events that are occuring in windows(out side of activex control also). Is it possible? if it then how can i do it?

              Manish Patel. B.E. - Information Technology.

              N Offline
              N Offline
              Nitheesh George
              wrote on last edited by
              #6

              your Question : "Now another problem is how to get HINSTANCE in activex control? I can get it in win32 application but how to get it in activex control? Please help me out" Answer: To get the instance of an activex control you can use AfxGetInstanceHandle() in MFC. eg: g_hInstance = AfxGetInstanceHandle(); or if u are developing a Win32 ActiveX Control you can use HANDLE hModule in dllmain function is the HINSTANCE. like this way - int Dllmain(HMODULE hModule...) { g_hInstance = (HINSTANCE) hModule; ...................... ...................... } i think now u got what i mean?

              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