Click here to Skip to main content
15,915,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI Objects in Windows Task Manager Pin
wb22-Aug-04 11:09
wb22-Aug-04 11:09 
GeneralRe: GDI Objects in Windows Task Manager Pin
PJ Arends22-Aug-04 11:24
professionalPJ Arends22-Aug-04 11:24 
GeneralRe: GDI Objects in Windows Task Manager Pin
Jörgen Sigvardsson22-Aug-04 11:41
Jörgen Sigvardsson22-Aug-04 11:41 
Generalfunction pointers... Pin
misterbear22-Aug-04 7:56
misterbear22-Aug-04 7:56 
GeneralRe: function pointers... Pin
Neville Franks22-Aug-04 10:52
Neville Franks22-Aug-04 10:52 
QuestionLOGFONT received by EnumFontFamExProc? Pin
Michael Gunlock22-Aug-04 5:41
Michael Gunlock22-Aug-04 5:41 
GeneralCListBox AddString() Pin
Anonymous22-Aug-04 3:23
Anonymous22-Aug-04 3:23 
GeneralRe: CListBox AddString() Pin
Dominik Reichl22-Aug-04 6:31
Dominik Reichl22-Aug-04 6:31 
GeneralRe: CListBox AddString() Pin
Ravi Bhavnani22-Aug-04 7:28
professionalRavi Bhavnani22-Aug-04 7:28 
QuestionHow do I refuse to resize if a window is getting too big/small? Pin
DaFrawg22-Aug-04 3:04
DaFrawg22-Aug-04 3:04 
AnswerRe: How do I refuse to resize if a window is getting too big/small? Pin
Andrew Peace22-Aug-04 5:30
Andrew Peace22-Aug-04 5:30 
AnswerRe: How do I refuse to resize if a window is getting too big/small? Pin
PJ Arends22-Aug-04 5:57
professionalPJ Arends22-Aug-04 5:57 
GeneralCreating new database Pin
Alex Che22-Aug-04 1:27
Alex Che22-Aug-04 1:27 
GeneralFor MySQL Pin
Ivan Cachicatari22-Aug-04 2:10
Ivan Cachicatari22-Aug-04 2:10 
GeneralRe: Creating new database Pin
PJ Arends22-Aug-04 11:29
professionalPJ Arends22-Aug-04 11:29 
GeneralAbout MySQL connection Pin
Ivan Cachicatari23-Aug-04 7:50
Ivan Cachicatari23-Aug-04 7:50 
GeneralxDirectx Programming in VC++ Pin
JohnExalt22-Aug-04 1:24
JohnExalt22-Aug-04 1:24 
GeneralTranslating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 1:16
Jörgen Sigvardsson22-Aug-04 1:16 
I'm trying to translate virtual key codes into strings. I've found that one can translate the virtual key code into a scan code, and then convert the scan code into a string using GetKeyNameText(). GetKeyNameText() works 90% of the time as I'd like. The other 10% confuses the user. For instance, Insert is translated into NUM 0 and Delete into NUM DECIMAL.

I can understand why as scan codes are the "ultimate truth". Since there may be more than one scan code per virtual key (there are two deletes on the keyboard since the AT-model), it has to choose one. I think it chooses the numeric key because of legacy (old XT-keyboards).

Anyway, does anyone know a good way to translate virtual keys into strings? Or do I have to do it manually? (Sigh | :sigh: )

[edit]I think I could specialize the translation for all keys which have doubles. The doubles are those which resides both on the numeric keyboard and the alphanumeric keyboard.[/edit]

(I am going to use the strings in menus to highlight accelerators, if that explains my problem any clearer)

--
...Coca Cola, sometimes war...
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 5:49
professionalPJ Arends22-Aug-04 5:49 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 6:49
Jörgen Sigvardsson22-Aug-04 6:49 
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 11:21
professionalPJ Arends22-Aug-04 11:21 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 11:30
Jörgen Sigvardsson22-Aug-04 11:30 
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 12:13
professionalPJ Arends22-Aug-04 12:13 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 12:15
Jörgen Sigvardsson22-Aug-04 12:15 
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 12:28
professionalPJ Arends22-Aug-04 12:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.