Re: Substract enum
From: Rudy Velthuis (rvelthuis_at_gmx.de)
Date: 03/13/04
- Next message: Polaris: "Re: Substract enum"
- Previous message: glerner: "Form border style and Windows taskbar"
- In reply to: Robin Theilade: "Re: Substract enum"
- Next in thread: Polaris: "Re: Substract enum"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 13 Mar 2004 22:29:56 +0100
At 21:52:09, 13.03.2004, Robin Theilade wrote:
> I didn't define the enum it is build in within the .NET framework named
> System.Windows.Forms.Keys and is already marked with an Flags
> attribute.. (MSDN link:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/h
> tml/frlrfsystemwindowsformskeysclasstopic.asp) but even though
> Microsoft flagged it with a FlagsAttribute I can not OR the values
This enum is a bit tricky. The lower part is the key code, the upper part
contains bits that indicate whether Shift, Control or Alt are pressed,
and only these upper bits can be or-ed. They key codes are masked by
Keys.KeyCode, and the upper bits (Shift, Ctrl, Alt) are masked by the
Keys.Modifiers value.
-- Rudy Velthuis "I'll moider da bum." -- Heavyweight boxer Tony Galento, when asked what he thought of William Shakespeare
- Next message: Polaris: "Re: Substract enum"
- Previous message: glerner: "Form border style and Windows taskbar"
- In reply to: Robin Theilade: "Re: Substract enum"
- Next in thread: Polaris: "Re: Substract enum"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|