Page 1 of 1

#PB_Any in AddKeyboardShortcut()

Posted: Fri Oct 06, 2006 10:59 am
by jqn
Well, it's very useful if you can provide a "result" for AddKeyboardShortcut(), using #PB_Any in Event number place.

Be careful, I've noted that EventMenu() returns an .w field (2 bytes) only up to 32767.

JOAQUIN

Posted: Fri Oct 06, 2006 12:05 pm
by Fluid Byte
Be careful, I've noted that EventMenu() returns an .w field (2 bytes) only up to 32767.
Perfectly normal because EventMenu() processes the #WM_COMMAND message. The identifier of a menu item and a notification code are both stored in the wParam field. So they share the same parameter wich has a data type of LONG. This means both values must have a data type of WORD and can only have a maximium size of 32767.