HI.
"To retrieve character codes, an application must include the
TranslateMessage function in its thread message loop"
How can i do that?
Thanks 4 3854
David,
What are you trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"David" <a@a.com> wrote in message
news:ez**************@tk2msftngp13.phx.gbl... 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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl... David,
What are you trying to do?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"David" <a@a.com> wrote in message news:ez**************@tk2msftngp13.phx.gbl... 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]
- mv*@spam.guard.caspershouse.com
"David" <a@a.com> wrote in message
news:Ol**************@tk2msftngp13.phx.gbl... 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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... David,
What are you trying to do?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"David" <a@a.com> wrote in message news:ez**************@tk2msftngp13.phx.gbl... > 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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl... 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] - mv*@spam.guard.caspershouse.com
"David" <a@a.com> wrote in message news:Ol**************@tk2msftngp13.phx.gbl... 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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... David,
What are you trying to do?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"David" <a@a.com> wrote in message news:ez**************@tk2msftngp13.phx.gbl... > HI. > > "To retrieve character codes, an application must include the > TranslateMessage function in its thread message loop" > > How can i do that? > > Thanks > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Gutek |
last post by:
Hello,
I have written a simple application, in which WinMain contains single line
only:
return DialogBox (0, MAKEINTRESOURCE(IDD_DIALOG), NULL, DlgProc) ;
All messages are processed by...
|
by: Phoebe |
last post by:
Hello,
Can anyone tell when we need to use the function IsDialogMessage?
What is the different between Code 1 and Code 2?
Code 1:
---------
while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{...
|
by: Pmb |
last post by:
At the moment I'm using Borland's C++
(http://www.borland.com/products/downloads/download_cbuilder.html#)
I want to be able to take an array of points and plot them on the screen. Is
there a way...
|
by: August1 |
last post by:
Hi,
I'm beginning to approach Windows programming in C++. I've written
a short
application which is to do nothing more than demonstrate the Window
style being used. The child windows are not...
|
by: Daniel Moree |
last post by:
I'm using MS VC++ 6.0
I'm working on a big project. I've currently have several files for this
project.
Here's the problem.
I have one header file phead.h
I have two code files main.cpp and...
|
by: Tom Shelton |
last post by:
Last night I was feeling a little bored and I happend to come across a
bit of code I wrote way back in the VB5 days. This code, was a simple
little windows application - but was created strictly...
|
by: Neil Stevens |
last post by:
Hi,
I would like to implements a message queue much like i used to in vb6 as
below:-
dim myMsg as MSG
while (PeekMessage(myMsg, hWnd, 0, 0))
if myMsg.Msg = WM_QUIT Then
End
end if
|
by: Rsrany |
last post by:
I've been working on a few gtk applications and need to tie a hot key
catcher into a thread. I am currently finding threaded
user32.GetMessageA do not work.
I have included two programs:
1) a...
|
by: Juan Martinez |
last post by:
In a form i have a drawing control called VectorDraw and a textbox. The
text box is disable, when i am using the drawing area i can write some
text, what i want to do is that when i press any key...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |