I have a VFP application in which I want to implement auto-logoff feature.
I used BINDEVENT() function to handle this. I created a eventhandler class in whose Init() i captured WM_LBUTTONUP, WM_RBUTTONUP and WM_KEYUP events. My last activity timer will be reset in the delegate method every time I get any of the above 3 windows events.
Now I want to reset a variable every time I select an item from menu.
WM_MENUSELECT is of no use because it fires even if I mouse hover over the items. What i really need to capture is a menu item selection.
WM_COMMAND seemed to solve my problem until I recognized that it was fired even when I click on 'Yes/No' buttons on the message box.
How do I capture a menu select?