wxWindow::GetClientData

char * GetClientData(void)

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