Capturing a click on a disabled CAPI list-panel
Unable to parse email body. Email id is 11534
Unable to parse email body. Email id is 11534
Nick Barnes <Nick.Barnes <at> pobox.com> writes: > > > I have a CAPI list-panel, which I have disabled with > (setf (capi:simple-pane-enabled foo) nil). > > I want to get a callback if the user clicks anywhere in the panel. > The callback is likely to do various things, including enabling the > panel and some other elements. > > Ideas? > > Nick B > > A simple, CAPI-specific way of achieving this escapes me for the moment, but if you are on Windows I'm guessing you could use subclassing (in the winapi sense, rather than OO/CLOS sense) to replace the list-panel's window procedure, and then via this intercept the WM_LMOUSEDOWN message. More on subclassing here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633569(v=vs.85).aspx http://winapi.foosyerdoos.org.uk/info/sub_superclass.php http://blogs.msdn.com/b/oldnewthing/archive/2009/05/07/9592397.aspx Best, Chris