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. call OnKillFoucus event of Edit box..............

call OnKillFoucus event of Edit box..............

Scheduled Pinned Locked Moved C / C++ / MFC
5 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.
  • A Offline
    A Offline
    ani_ikram
    wrote on last edited by
    #1

    is there some way to call OnKillFocus Method of editboz against button clicking.

    _ N H S 4 Replies Last reply
    0
    • A ani_ikram

      is there some way to call OnKillFocus Method of editboz against button clicking.

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

      ani_ikram wrote:

      s there some way to call OnKillFocus Method of editboz against button clicking.

      Yes, by clicking outside the edit box. :-\ or you can explicitly set focus to some control other than the edit box after setting it first on the edit box. ON another note, OnKillFocus is called by the framework, when the control looses the focus. or Try SendMessage with WM_KILLFOCUS as one of the params (Just a guess) Hope this helps..

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      1 Reply Last reply
      0
      • A ani_ikram

        is there some way to call OnKillFocus Method of editboz against button clicking.

        N Offline
        N Offline
        Nishad S
        wrote on last edited by
        #3

        ani_ikram wrote:

        way to call OnKillFocus Method of editboz against button clicking

        If you click button then the focus will be set to button. So the OnKillFocus of editbox will be called, provided you have mapped like ON_EN_KILLFOCUS(IDC_EDIT1, OnKillFocus)

        - NS - [ODBaseBtn]

        1 Reply Last reply
        0
        • A ani_ikram

          is there some way to call OnKillFocus Method of editboz against button clicking.

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Did you declare OnKillFocus for editbox?

          1 Reply Last reply
          0
          • A ani_ikram

            is there some way to call OnKillFocus Method of editboz against button clicking.

            S Offline
            S Offline
            Sandeep Saini SRE
            wrote on last edited by
            #5

            Simply map "OnKillFoucus" to the click event of button

            ON_BN_CLICKED(IDC_BUTTON, OnKillFoucus)

            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