Thread: Setting window focus

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    12

    Setting window focus

    Now that I know how to send virtual keys to an application, I need some help on setting the window focus to the right window. Right now the virtual keys only go the the window that called them, but I need them to go to Notepad or some other program. Do I use getfocus()? And how?

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  2. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  3. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  4. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 02:33 PM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM