TranslateMessage

  • Thread starter Thread starter David
  • Start date Start date
D

David

HI.

"To retrieve character codes, an application must include the
TranslateMessage function in its thread message loop"

How can i do that?

Thanks
 
I'm handling the WM_KEYDOWN and WM_SYSKEYDOWN and i what i want is translate
the message to a WM_CHAR or WM_DEADCHAR.
"...The layout examines the message's virtual-key code and, if it
corresponds to a character key, provides the character code equivalent
(taking into account the state of the SHIFT and CAPS LOCK keys)..."
Thanks.


Nicholas Paldino said:
David,

What are you trying to do?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

David said:
HI.

"To retrieve character codes, an application must include the
TranslateMessage function in its thread message loop"

How can i do that?

Thanks
 
David,

Do you want to translate it to the WM_CHAR or WM_DEADCHAR message, or do
you want to send it back into the message pump to be sent? TranslateMessage
will take those messages and post the new message to the thread.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

David said:
I'm handling the WM_KEYDOWN and WM_SYSKEYDOWN and i what i want is
translate
the message to a WM_CHAR or WM_DEADCHAR.
"...The layout examines the message's virtual-key code and, if it
corresponds to a character key, provides the character code equivalent
(taking into account the state of the SHIFT and CAPS LOCK keys)..."
Thanks.


in
message news:%[email protected]...
David,

What are you trying to do?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

David said:
HI.

"To retrieve character codes, an application must include the
TranslateMessage function in its thread message loop"

How can i do that?

Thanks
 
Thanks for reply.

I want get a char from a virtual-key taking into account the state of the
SHIFT and CAPS LOKC keys, like say the description of TranslateMessage
function. mmm...do you understand?


Nicholas Paldino said:
David,

Do you want to translate it to the WM_CHAR or WM_DEADCHAR message, or do
you want to send it back into the message pump to be sent? TranslateMessage
will take those messages and post the new message to the thread.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

David said:
I'm handling the WM_KEYDOWN and WM_SYSKEYDOWN and i what i want is
translate
the message to a WM_CHAR or WM_DEADCHAR.
"...The layout examines the message's virtual-key code and, if it
corresponds to a character key, provides the character code equivalent
(taking into account the state of the SHIFT and CAPS LOCK keys)..."
Thanks.


in
message news:%[email protected]...
David,

What are you trying to do?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

HI.

"To retrieve character codes, an application must include the
TranslateMessage function in its thread message loop"

How can i do that?

Thanks
 
Back
Top