Keyboard and ViewOnly flag


Author
Message
l.baldini
l.baldini
Supreme Being (400 reputation)Supreme Being (400 reputation)Supreme Being (400 reputation)Supreme Being (400 reputation)Supreme Being (400 reputation)Supreme Being (400 reputation)Supreme Being (400 reputation)Supreme Being (400 reputation)Supreme Being (400 reputation)
Group: Forum Members
Posts: 4, Visits: 7
Hi, I have a simple question... when the ViewOnly flag is set to FALSE every key I press is sent directly to the ServerX. Is there a way of detecting what I'm pressing before the key gets sent?

What I'm trying to do is the following: allow the user to go to Fullscreen mode than ask him to press, for example, CTRL-ALT-F5 to go back to normal mode...

I've tryied using the PreTranslateMessage of my CDialog form but it works only if the ViewOnly flag is set to FALSE...

Thanks,

      Luca Baldini

Yury Averkiev (s-code)
Yury Averkiev (s-code)
Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)
Group: Administrators
Posts: 1.9K, Visits: 3.6K
May be you should try to use keyboard hooks instead of PreTranslateMessage? Using keyboards hooks you shoulbe able to capture all the keypresses.

http://www.s-code.com/App_Themes/Default/images/blue_line.gif
Regards,
Yury Averkiev, SmartCode

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Explore
Messages
Mentions
Search