hadgraft@civeng.monash.edu.au (Roger Hadgraft) (10/31/89)
I am currently writing a small application that works like Command Post. It adds menus to other applications, and intercepts the menu selections for the application concerned and does useful things with the menus it has installed. To do this, it installs a SystemHook (WM_SYSMSGFILTER). What I want to intercept is the appropriate WM_COMMAND message, but I never see it. The only useful messages that I see are the WM_MENUSELECT ones. Unfortunately, when a user cancels a menu, it looks to my program as if a menu selection was made. Is there a different hook that I can use. Obviously there is a solution to this problem. Otherwise Command Post wouldn't work! All suggestion much appreciated. -- Roger Hadgraft | hadgraft@civeng.monash.edu.au Lecturer in Civil Engineering | phone: +61 3 565 4983 Monash University | fax: +61 3 565 3409 Clayton, Vic. 3168. Australia. |