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. WM_KILLFOCUS [modified]

WM_KILLFOCUS [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 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.
  • N Offline
    N Offline
    Nawal K Gupta
    wrote on last edited by
    #1

    In Some Old Code some validation is done in WM_KILLFOCUS. Now We know that this is not a good way, But we don't wan't to change the code. If Some User's closes the dialog using "Top Right Cross Button" the dialog and its Data becomse invalid and after that the KillFocus comes. In This case we dont want the killfocus event to happen. Please suggest. Stuck in a Problem

    T 1 Reply Last reply
    0
    • N Nawal K Gupta

      In Some Old Code some validation is done in WM_KILLFOCUS. Now We know that this is not a good way, But we don't wan't to change the code. If Some User's closes the dialog using "Top Right Cross Button" the dialog and its Data becomse invalid and after that the KillFocus comes. In This case we dont want the killfocus event to happen. Please suggest. Stuck in a Problem

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      Indian Idol wrote:

      In This case we dont want the killfocus event to happen.

      maintain a FLAG, make it false when you receieve SC_CLOSE in WM_SYSCOMMAND!

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

      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