Hello,
I'm trying to convert the virtual key received from a
MSG_WM_LBUTTONDOWN message to the keyboard equivalent character (a,b,c,
etc). in the OnLButtonDown method.
Thanks! 3 3551
lakepeir wrote: I'm trying to convert the virtual key received from a MSG_WM_LBUTTONDOWN message to the keyboard equivalent character (a,b,c, etc). in the OnLButtonDown method.
Don't do that. Either handle WM_CHAR, and let Win32 process the keystrokes
for you, or get a control that already does whatever you are trying to do.
Going forward, this newsgroup is not qualified to discuss the Win32
libraries. Try news:microsoft.public.vc.language for C++ topics, and a
Win32 GUI programming group for the low-level topics.
--
Phlip
The OnLButtonDown() take two parameters and neither is a WM_CHAR.
phlip wrote: lakepeir wrote:
I'm trying to convert the virtual key received from a MSG_WM_LBUTTONDOWN message to the keyboard equivalent character (a,b,c, etc). in the OnLButtonDown method.
Don't do that. Either handle WM_CHAR, and let Win32 process the keystrokes for you, or get a control that already does whatever you are trying to do.
Going forward, this newsgroup is not qualified to discuss the Win32 libraries. Try news:microsoft.public.vc.language for C++ topics, and a Win32 GUI programming group for the low-level topics.
-- Phlip
lakepeir wrote: The OnLButtonDown() take two parameters and neither is a WM_CHAR.
Please learn a little SDK architecture. Messages start as integers, before a
library such as MFC wraps them in methods. WM_CHAR probably drives OnChar().
Use that, with help from an on-topic forum.
--
Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Robert Zierhofer |
last post by:
hi there,
it seems as if i can´t convert the euro and pound sign to their html
equivalents.
i tried
eregi_replace("€", "€", $haystack);
eregi_replace("£", "£", $haystack);
as...
|
by: al |
last post by:
class Base
{
public:
virtual void method();
};
class Derive : public Base
{
public:
void method();
|
by: ajay.somni |
last post by:
I would like to know what is virtual function in c++.
Besides what is virtual.
|
by: Niyazi |
last post by:
Hi all,
I have a integer number from 1 to 37000. And I want to create a report in
excel
that shows in 4 alphanumeric length.
Example:
I can write the cutomerID from 1 to 9999 as:
1 ---->...
|
by: elliotng.ee |
last post by:
I have a text file that contains a header 32-bit binary. For example,
the text file could be:
%%This is the input text
%%test.txt
Date: Tue Dec 26 14:03:35 2006...
|
by: rdraider |
last post by:
I can't seem to find a way to convert an INT type in the form of YYYYMMDD to
an actual date form of mm/dd/yyyy
Can anyone pointt me in the right direction?
Thanks
|
by: John B |
last post by:
Hi all,
Say I have the int 123456789
What would be the quickest/best way to convert it to
int{1,2,3,4,5,6,7,8,9}
What I came up with was to determine the largest factor of 10 (100M)
divide by...
|
by: Sun |
last post by:
Hi everyone
. I have two files named a.txt and b.txt.
I open a.txt with ultraeditor.exe. here is the first row of the file:
neu für
then I switch to the HEX mode:
00000000h: FF FE 6E 00 65...
|
by: rtillmore |
last post by:
Hello,
I did a quick google search and nothing that was returned is quite
what I am looking for. I have a 200 character hexadecimal string that
I need to convert into a 100 character string.
...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |