CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2002
    Location
    St.Petersburg, Russia
    Posts
    714

    Angry PocketPC hardware keys

    Hello, everybody.

    I need to gain access to PocketPC's hardware buttons.
    It's quite simple with up/down/left/right buttons. They send me a WM_KEYDOWN message. But how to deal with other buttons (which are usually mapped to run applications) ?

    I found the GXOpenInput() function. But this function is buggy (it changes up/down keycodes but the old keycodes are still coming to my application) and it gives me only 3 of 4 front buttons' keycodes.

    Is there another way?

    Thanks!
    With best wishes, Alexander Hritonenkov

  2. #2
    Join Date
    Nov 2002
    Location
    Israel
    Posts
    182
    Did you solve this problem ?
    I thought the buttons are hot keys and I can use RegisterHotKey and that will work like it written in MSDN. I was mistaken.
    So can you tell me what to do?
    Good luck

  3. #3
    Join Date
    Apr 2002
    Location
    St.Petersburg, Russia
    Posts
    714
    Fortunately I found one useful site. Try to look here:
    http://www.pocketpcdn.com/articles/h...ware_keys.html
    Also you can download sample application source here: http://www.pocketpcdn.com/articles/s...eKeySample.zip

    Good luck!
    With best wishes, Alexander Hritonenkov

  4. #4
    Join Date
    Nov 2002
    Location
    Israel
    Posts
    182
    I found a function: SHSetAppKeyAssoc.
    It works exactly as I wanted.
    I saw this arcticle (with undocumented function). I don't know why somebody needs it. Do you have any idea?
    Good luck

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