wxID_ANY,
unique window IDs and handling messages from arbitrary wxWindows
Volker Bartheld
dr_versaeg at freenet.de
Wed Oct 25 02:41:07 PDT 2006
Hi Vadim!
>VB> So the [wxWindow] c'tor passes in wxID_ANY and a later GetId() on the instance of
>VB> the new window captures the ID. Is this a valid thing to do? Can I
>VB> assume, this ID is unique?
>VB> (effectively using wxID_ANY as winid in the EVT_COMMAND macro) to
>VB> capture events from all possible windows.
>VB> This works so far - but is it also the correct approach?
> Yes and yes.
> Yes.
Hey, cool! Big thanks - you've saved me a lot of time!
Volker
__
Mail replies to/an V B A R T H E L D at G M X dot D E
More information about the wx-users
mailing list