Arrow Key

This is a discussion on Arrow Key within the Windows Programming forums, part of the Platform Specific Boards category; Hi i was wondering if anyone could help me with programming the left arrow key on the keyboard so when ...

  1. #1
    Is Trying to Learn
    Join Date
    Mar 2006
    Location
    Hutton, Preston
    Posts
    215

    Arrow Key

    Hi

    i was wondering if anyone could help me with programming the left arrow key on the keyboard so when the user presses it, it will scroll to the left of all the images that are in the directory, and when it gets to the last file it will loop back to the first picture again?

    Thanks

  2. #2
    Captain - Lover of the C
    Join Date
    May 2005
    Posts
    341
    VK_LEFT
    There are several ways to check if it's pressed. You can handle the WM_KEYDOWN and WM_KEYUP messages. You could also GetAsyncKeyState(VK_LEFT).
    Don't quote me on that... ...seriously

  3. #3
    Is Trying to Learn
    Join Date
    Mar 2006
    Location
    Hutton, Preston
    Posts
    215
    I Have used this well VK_RIGHT but when i press the right key it does not go through the image list even tho i have linked it togather (i think), when i press the right key it just moves to a button just like tab would do on any program

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 05:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 05:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21