Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - capture keystroke
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

capture keystroke

 Post Reply Post Reply
Author
Message
dave12 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 February 2007
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote dave12 Quote  Post ReplyReply Direct Link To This Post Topic: capture keystroke
    Posted: 19 April 2007 at 5:30pm
Is there an easy way to capture keystrokes in a property grid item?  I would like something similar to CXTPCustomizeKeyboardPage but as a one line capture of a keystroke (something like Ctrl +N) that I can then associate with a global command that I can handle through a Hook like:

OnHookMessage(UINT nMessage, WPARAM& wParam, LPARAM& lParam)
Back to Top
Barto View Drop Down
Groupie
Groupie


Joined: 27 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote Barto Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2007 at 9:57am
http://www.abyss-online.de/stuff/hotkey.zip
I have made some custom property grid item classes for keyboard customization (hotkey).. try it out, it works for most keys (i think there's some problems for return, tab, escape, and delete)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.