I create many derivatives of my mywindow class.
Under Windows you need to register a WNDCLASS/WNDCLASSEX to get the mywindow to show.
Each instance has its own WNDPROC handler so things like buttons, grids, textedit classes are derivatives of the mywindow class.
If i need to find a certain window i use FindWindowEx and then SendMessage in some circumstances like disallowing second execution and pass on the commandline arguments.
BCB allowed me to do this easily because it compiled the instance name into the class.
Code:
TForm *MainWindow = new TForm();
FindWindowEx(NULL, NULL, "MainWindow", NULL);
Now in ansi i need to find a different way since finding a window/xwindow by the window title is not a option.