wxWindow::SetClientData

void SetClientData(char *data)

Sets user-supplied client data. Normally, any extra data the programmer wishes to associate with the window should be made available by deriving a new class with new data members.