> 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.

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!

--
Jason Teagle
[EMAIL PROTECTED]



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

Reply via email to