Date: 2007-04-12 04:50 am (UTC)
I actually recently stumbled on this too: RegisterHotKey is a poorly-named function, and MSDN doesn't say mention alternatives in the documentation.

The whole Accelerator business is really tricky, because you have to modify your message loop to LoadAccelerators and TranslateAccelerator before trying to DispatchMessage. There is no other way, but there really should be. It actually took me 2 tries to load accelerators properly before I got them to work. In contrast, RegisterHotKeys is a 2-line modification that just works.

I think that their WinAPI programmer should be reprimanded, but it should be understood that WinAPI is a monster. MFC is also a monster, even though it tries not to be one.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

January 2026

S M T W T F S
     123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 8th, 2026 03:38 pm
Powered by Dreamwidth Studios