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 window loses focus still get keyboard input...

About window loses focus still get keyboard input...

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

    Bikram Singh,by using WM_NCACTIVATE as you tell me,my program seems to be OK,but it seems to be a visual effect.My target(Windows Media Player) still loses focus when I click a button on my dialog. Please tell me more about this.

    B 1 Reply Last reply
    0
    • U uniqueworld

      Bikram Singh,by using WM_NCACTIVATE as you tell me,my program seems to be OK,but it seems to be a visual effect.My target(Windows Media Player) still loses focus when I click a button on my dialog. Please tell me more about this.

      B Offline
      B Offline
      bikram singh
      wrote on last edited by
      #2

      Why not save the hwnd of the media player? This way, when u press a button in your app, u can, before sending keystrokes, make the Media player window focused by using SetFocus() Bikram Singh

      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