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. Help DLL

Help DLL

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
6 Posts 4 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.
  • S Offline
    S Offline
    so0_lanhlung2
    wrote on last edited by
    #1

    i have checkbox... i want when i check my checkbox,my DLL know that i checked someone have solution? thanks so much

    _ CPalliniC 2 Replies Last reply
    0
    • S so0_lanhlung2

      i have checkbox... i want when i check my checkbox,my DLL know that i checked someone have solution? thanks so much

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      The checkbox checked notification is sent to the parent dialog of the checkbox. You will need to call some method in the DLL when you get this check event. The event is BN_CLICKED.

      «_Superman_»  _I love work. It gives me something to do between weekends.

      _Microsoft MVP (Visual C++)

      Polymorphism in C

      S 1 Reply Last reply
      0
      • S so0_lanhlung2

        i have checkbox... i want when i check my checkbox,my DLL know that i checked someone have solution? thanks so much

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

        I elaborate just a bit the good Superman's answer. The CheckBox 'check' is a GUI event and should be handled by the GUI code (as Superman already suggested, you typically handle the BN_CLICKED notification code of the WM_COMMAND message in the parent window of the CheckBox control). The best way to 'notify something' to a DLL is calling a DLL's function. So:

        • Define a DLL function, e.g. OnMyCheck().
        • In the parent window of the CheckBox control handle the WM_COMMAND message: on BN_CLICKED notification coming from the CheckBox control call in turn the DLL's function OnMyCheck.

        :)

        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
        [My articles]

        In testa che avete, signor di Ceprano?

        A S 2 Replies Last reply
        0
        • CPalliniC CPallini

          I elaborate just a bit the good Superman's answer. The CheckBox 'check' is a GUI event and should be handled by the GUI code (as Superman already suggested, you typically handle the BN_CLICKED notification code of the WM_COMMAND message in the parent window of the CheckBox control). The best way to 'notify something' to a DLL is calling a DLL's function. So:

          • Define a DLL function, e.g. OnMyCheck().
          • In the parent window of the CheckBox control handle the WM_COMMAND message: on BN_CLICKED notification coming from the CheckBox control call in turn the DLL's function OnMyCheck.

          :)

          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
          [My articles]

          A Offline
          A Offline
          Albert Holguin
          wrote on last edited by
          #4

          both good answers, my 5 to both. :)

          1 Reply Last reply
          0
          • _ _Superman_

            The checkbox checked notification is sent to the parent dialog of the checkbox. You will need to call some method in the DLL when you get this check event. The event is BN_CLICKED.

            «_Superman_»  _I love work. It gives me something to do between weekends.

            _Microsoft MVP (Visual C++)

            Polymorphism in C

            S Offline
            S Offline
            so0_lanhlung2
            wrote on last edited by
            #5

            i understand your idea but i don't know how make it.. can you write a sample ( function GetEvent) for me? or any document to understand it... thanks Hans :) :)

            1 Reply Last reply
            0
            • CPalliniC CPallini

              I elaborate just a bit the good Superman's answer. The CheckBox 'check' is a GUI event and should be handled by the GUI code (as Superman already suggested, you typically handle the BN_CLICKED notification code of the WM_COMMAND message in the parent window of the CheckBox control). The best way to 'notify something' to a DLL is calling a DLL's function. So:

              • Define a DLL function, e.g. OnMyCheck().
              • In the parent window of the CheckBox control handle the WM_COMMAND message: on BN_CLICKED notification coming from the CheckBox control call in turn the DLL's function OnMyCheck.

              :)

              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
              [My articles]

              S Offline
              S Offline
              so0_lanhlung2
              wrote on last edited by
              #6

              thanks so much :)

              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