Article View: borland.public.cppbuilder.nativeapi
Article #17385Re: Key Name to Virtual Key Code
From: Vladimir Afanasyev
Date: Wed, 26 Mar 2003 09:13
Date: Wed, 26 Mar 2003 09:13
20 lines
1434 bytes
1434 bytes
Hi, "RaynorPao" <RaynorPao.nospam@nospam.pchome.com.tw> wrote: >Hi all: > >Is there an API can convert Key Name to Virtual Key Code? >For example: > >char sz[16]="F1"; >int i=KeyNameToVirtualKeyCode(sz); > >The value of i will be VK_F1. You can write this function. If you open Win32 Programmer's Reference Help (page Search) and try to find next: "Virtual-Key Codes" you find table of Vitual Codes and mouse and keyboard. Vladimir.
Technical Details
Message-ID:
<3e816f27$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e8158e9@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,59cf09bcf2259d6d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-26 01:25:39 PST From: "Vladimir Afanasyev" <avv@systema.kiev.ua> Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua> Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua> Subject: Re: Key Name to Virtual Key Code Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.244.14.114 62.244.14.114 X-Forwarded-For: 192.168.0.147 References: <3e8158e9@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3e816f27$1@newsgroups.borland.com> Date: 26 Mar 2003 01:13:11 -0800 X-Trace: newsgroups.borland.com 1048669991 207.105.83.65 (26 Mar 2003 01:13:11 -0800) Lines: 20 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail