We use the FindWindowsEx function https://msdn.microsoft.com/en-us/library/windows/desktop/ms633500(v=vs.85).aspx to retrieve a handle for the main 4D window in our plugin. We normally do this by setting the class name to the path of the 4D.exe file:
handle = FindWindowEx( NULL, NULL, pathTo4DExecutable, NULL ); /* where pathTo4DExecutable is the path to 4D.exe */
In V16, 32-bit the “className” is still the same as previous versions (the path to the 4D executable). However, in 4D V16, 64-bit the class name has changed to: “XTB_MAIN_MDI_CE02B642”.
- Is “XTB_MAIN_MDI_CE02B642” dynamic?
- Will it ever change between versions?
- How is the class name derived?
Development Team Lead