G
Guest
I thought it would be a simple matter to SendMessage(hWnd, WM_COMMAND,
commandId, lParam), where hWnd is the form window handle and lParam is 0.
(Surprise... it doesn't work on a WM5 PPC.)
Using CESpy, I can see that for real menu clicks, lParam is set to the
handle of a window with a class name of "MS_SOFTKEY_CE_1.0".
Sure enough, if I manually set lParam to this value in the debugger,
SendMessage works as expected.
So now the question is: How do I _reliably_ get the handle to this
MS_SOFTKEY_CE_1.0 window? There can be any number of them at a given time.
I need to know which one to use for the active form.
Thanks!
-David
commandId, lParam), where hWnd is the form window handle and lParam is 0.
(Surprise... it doesn't work on a WM5 PPC.)
Using CESpy, I can see that for real menu clicks, lParam is set to the
handle of a window with a class name of "MS_SOFTKEY_CE_1.0".
Sure enough, if I manually set lParam to this value in the debugger,
SendMessage works as expected.
So now the question is: How do I _reliably_ get the handle to this
MS_SOFTKEY_CE_1.0 window? There can be any number of them at a given time.
I need to know which one to use for the active form.
Thanks!
-David