CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Detecting ALT/CTRL Key

    Does anyone know how to detect ALT/CTRl Key

    I want to know if Any of these two keys are pressed while I am in the Timer control.
    There is know Keydown/up properties availbale!



  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Detecting ALT/CTRL Key

    Try GetKeyboardState and GetAsyncKeyState APIs. But these states are maintained per thread basis. so if another thread/process has keyboard focus then you not get the state correctly

    RK

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured