SmartCode Solutions Web Forum




Keyboard and ViewOnly flag

Author Message
 Posted Wednesday, January 09, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Wednesday, January 09, 2008
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

Post #1871
Add to Twitter Add to Facebook
 Posted Wednesday, January 09, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 11 minutes ago
Posts: 1,625, Visits: 3,045
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
We are looking for investors and business partners. Please contact us for more details

Kindest Regards,
SmartCode Solutions Support
Post #1874
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse