{"id":265,"date":"2014-03-25T12:03:55","date_gmt":"2014-03-25T20:03:55","guid":{"rendered":"http:\/\/sambaker.net\/neattools\/?p=265"},"modified":"2014-03-25T12:05:38","modified_gmt":"2014-03-25T20:05:38","slug":"glitches-in-the-matrix-er-neattools","status":"publish","type":"post","link":"https:\/\/sambaker.net\/neattools\/?p=265","title":{"rendered":"Glitches in the Matrix, er&#8230;NeatTools"},"content":{"rendered":"<p>Step one, I&#8217;ve identified the Windows function that created the toolbox windows.  It&#8217;s in JComponent.cpp here:<\/p>\n<pre lang=\"cpp\">\r\n\/\/Toolbox! \r\n  JComponent* JComponent::createJDialog(char* name, \r\n    JComponent* p, boolean widthSysMenu, void** arg) {\r\n\t  HWND hWnd = CreateWindowEx(\r\n\t\t  WS_EX_TOPMOST,\r\n\t\t  name,\r\n\t\t  \"\",\r\n\t\t  WS_POPUP | WS_CLIPCHILDREN | WS_CAPTION | WS_DLGFRAME | WS_SIZEBOX | ((widthSysMenu) ? WS_SYSMENU : 0),\r\n\t\t  0, \r\n\t\t  0,\r\n\t\t  0,\r\n\t\t  0,\r\n\t\t  (HWND)(int)*p, \r\n\t\t  null,\r\n\t\t  JMicroSoft::hInstance,\r\n\t\t  (LPVOID)arg);\r\n    return (hWnd) ? getJComponent((int)hWnd) : null;\r\n  }\r\n<\/pre>\n<p>So far I&#8217;ve been able to modify the windows style slightly, just to prove that this is the window I&#8217;m looking for.  Now I need to figure out how it&#8217;s being resized.<\/p>\n<p>I&#8217;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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step one, I&#8217;ve identified the Windows function that created the toolbox windows. It&#8217;s in JComponent.cpp here: \/\/Toolbox! JComponent* JComponent::createJDialog(char* name, JComponent* p, boolean widthSysMenu, void** arg) { HWND hWnd = CreateWindowEx( WS_EX_TOPMOST, name, &#8220;&#8221;, WS_POPUP | WS_CLIPCHILDREN | WS_CAPTION | WS_DLGFRAME | WS_SIZEBOX | ((widthSysMenu) ? WS_SYSMENU : 0), 0, 0, 0, 0, (HWND)(int)*p, null, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/265"}],"collection":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=265"}],"version-history":[{"count":3,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions\/273"}],"wp:attachment":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}