Step one, I’ve identified the Windows function that created the toolbox windows. It’s in JComponent.cpp here:
//Toolbox! JComponent* JComponent::createJDialog(char* name, JComponent* p, boolean widthSysMenu, void** arg) { HWND hWnd = CreateWindowEx( WS_EX_TOPMOST, name, "", WS_POPUP | WS_CLIPCHILDREN | WS_CAPTION | WS_DLGFRAME | WS_SIZEBOX | ((widthSysMenu) ? WS_SYSMENU : 0), 0, 0, 0, 0, (HWND)(int)*p, null, JMicroSoft::hInstance, (LPVOID)arg); return (hWnd) ? getJComponent((int)hWnd) : null; } |
So far I’ve been able to modify the windows style slightly, just to prove that this is the window I’m looking for. Now I need to figure out how it’s being resized.
I’ve also encountered another bug. If I leave a toolbox open, when I close the program down, when I come back, the border on the toolbox is missing. If I close it and restart the program it seems fine, but still strange. One thing at a time.