The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: fdelaportilla on December 05, 2010, 03:53:24 PM

Title: Thanks for an old answer to an old question
Post by: fdelaportilla on December 05, 2010, 03:53:24 PM
My thanks to Mincho Georgiev for his answer to the question 'Accelerators Q' posted by DC on February 26th, 2006. I know now why my Accelerators were not working properly.

My fault for taking the lazy's man approach to building sort of a 'generic' windows app, with a simple menu, a set of accelerators, and a couple of dialogboxes, one of them a custom aboutbox, to pass credit  to the original author of an old C program, back in 1992.

I used the ProStart Wizard for construction of a Windows App, and just trashed here and there code which might not be relevant to my simple purpose.

After modifying the message loop to include Accelerators, I was a bit discouraged when accelerators would not work after compiling resources, assembly and linkage.

After reading Mr. Georgiev's advice to DC, I realized that , in my WndProc, I was performing the secondary switch on wParam, instead of switching on LOWORD(wParam), when the message processed was WM_COMMAND.
 

I knew that becoming a member of this Forum was a good idea  :U.

Greetings to all
Fernando
Title: Re: Thanks for an old answer to an old question
Post by: hutch-- on December 08, 2010, 03:48:12 AM
Hi Fernando,

Glad you found the place and welcome on board.