How to bind

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tops
    New Member
    • Jan 2008
    • 4

    How to bind

    Hello everyone, I'm such a noob >:

    Anyways, I'm trying to create a program that has three different pages to browse through, these will be called from one of three different member functions from a class.

    My question is this,
    Is there a way I can bind the left and right arrow keys to initiate each function to go to the next page or previous?

    I've been googling around and I can't seem to find what I'm looking for, either that or its a bit much for me to comprehend so I'm not sure it its what I'm looking for.

    Anyhelp would be great!

    I'm using visual studio's 2008 building a c++ program

    -Tops
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    If this is a Windows program, intercept the WM_KEYDOWN message and check to see what was entered. If it was an arrow key, then call your member function.

    Comment

    Working...