> > I want to run a certain method whenever certain buttons, 
> combo boxes, 
> > spins controls etc are clicke don my dialogue.  Must I run 
> my method 
> > in all the handlers or can I intercept just a couple of 
> messages once 
> > they have happened and run it from there?
> 
> If you can guarantee that controls have consecutive IDs, then
> ON_CONTROL_RANGE() sounds like it would be useful.

I thought of this, but was unsure of the correct parameter to pass for
things like selection change....

> But, to get even better than that, you could intercept 
> WM_COMMAND - but be careful about calling the base class 
> version or your UI will stop responding!

I don't quite understand what you mean about being careful etc..  Do you
call the base class version or not?  I think if I do anything, it will be
the ON_CONTROL_RANGE approach...


This email and any attached files are confidential and copyright protected. If 
you are not the addressee, any dissemination of this communication is strictly 
prohibited. Unless otherwise expressly agreed in writing, nothing stated in 
this communication shall be legally binding.

_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to