Article View: comp.windows.ms
Article #1941System Hooks/Filters
From: Roger Hadgraft
Date: Mon, 30 Oct 1989 23:35
Date: Mon, 30 Oct 1989 23:35
17 lines
1385 bytes
1385 bytes
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. |
Technical Details
Message-ID:
<10274@vaxc.cc.monash.edu.au>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!ginosko!uunet!munnari.oz.au!bruce!monu1!vaxc!cie590lShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!ginosko!uunet!munnari.oz.au!bruce!monu1!vaxc!cie590l From: hadgraft@civeng.monash.edu.au (Roger Hadgraft) Newsgroups: comp.windows.ms Subject: System Hooks/Filters Message-ID: <10274@vaxc.cc.monash.edu.au> Date: 30 Oct 89 23:35:13 GMT Sender: cie590l@vaxc.cc.monash.edu.au (Hadgraft) Organization: Civil Engineering, Monash University, Australia Lines: 17