<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Have you tried adding WS_EX in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937954#M89298</link>
    <description>&lt;P&gt;Have you tried adding WS_EX_TOPMOST style to your window?&lt;/P&gt;
&lt;P&gt;WS_EX_TOPMOST Specifies that a window created with this style should be placed above all non-topmost windows and should stay above them, even when the window is deactivated. To add or remove this style, use the &lt;A href="https://community.intel.com/windows_2blf.htm"&gt;&lt;B&gt;SetWindowPos&lt;/B&gt;&lt;/A&gt; function.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2013 12:53:39 GMT</pubDate>
    <dc:creator>Anthony_Richards</dc:creator>
    <dc:date>2013-07-01T12:53:39Z</dc:date>
    <item>
      <title>OPENGL Window in Quickwin - window order problem</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937951#M89295</link>
      <description>&lt;P&gt;I have created an opengl window from within a quickwin apllication. I have some other quickwin child windows and some modeless doalog boxes (tool boxes) open that can manipulate the content of the 3D graphic, I also have dynamic zoom/pan/spin of the OGL 3D scene with the mouse...&lt;/P&gt;
&lt;P&gt;A problem I have is that anytime I click a quickwin dialog/child window/frame window the OGL window disappears into the backround i.e. behind the application frame window. I really need it on top of the frame window but could be fully or partly obsured by the quickwin childen of the frame window.&lt;/P&gt;
&lt;P&gt;The creation code for the OGL window is show below (based on IFORT rings sample program), any ideas what I could try?&lt;/P&gt;
&lt;P&gt;[fortran]if (hInstance == NULL0) then&lt;/P&gt;
&lt;P&gt;hInstance = GetModuleHandle(NULL0)&lt;BR /&gt; wc%cbSize = sizeof(wc)&lt;BR /&gt; wc%style = CS_OWNDC&lt;BR /&gt; wc%lpfnWndProc = loc(WindowProc)&lt;BR /&gt; wc%cbClsExtra = 0&lt;BR /&gt; wc%cbWndExtra = 0&lt;BR /&gt; wc%hInstance = hInstance&lt;BR /&gt; wc%hIcon = LoadIcon(0_HANDLE, int(IDI_WINLOGO,LPVOID))&lt;BR /&gt; wc%hCursor = LoadCursor(0_HANDLE, int(IDC_ARROW,LPVOID))&lt;BR /&gt; wc%hbrBackground = (COLOR_WINDOW + 1) !NULL&lt;BR /&gt; wc%lpszMenuName = NULL0&lt;BR /&gt; wc%lpszClassName = loc(szClassName)&lt;BR /&gt; wc%hIconSm = NULL0&lt;BR /&gt; class_atom = RegisterClassEx(wc)&lt;BR /&gt; if (class_atom == 0) then&lt;BR /&gt; ret = MessageBox(NULL0, "RegisterClass() failed: Cannot register window class."C, "Error"C, MB_OK)&lt;BR /&gt; hWnd = NULL0&lt;BR /&gt; return&lt;BR /&gt; end if&lt;BR /&gt; end if&lt;BR /&gt; ! Create the window&lt;BR /&gt; lcl_title = trim(title) // CHAR(0)&lt;BR /&gt; wflags=ior(WS_OVERLAPPEDWINDOW,WS_CLIPSIBLINGS)&lt;BR /&gt; wflags=ior(wflags,WS_CLIPCHILDREN)&lt;BR /&gt; !wflags=ior(wflags,WS_CHILD) not possible &lt;BR /&gt; hWnd = CreateWindowEx(0,szClassName, lcl_title, wflags, x, y, width, height, NULL0, NULL0, hInstance, NULL0)&lt;BR /&gt; if (hWnd == NULL0) then&lt;BR /&gt; ret = GetLastError()&lt;BR /&gt; ret = MessageBox(NULL0, "CreateWindow() failed: Cannot create a window."C, "Error"C, MB_OK);&lt;BR /&gt; return&lt;BR /&gt; end if[/fortran]&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 21:29:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937951#M89295</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2013-06-28T21:29:55Z</dc:date>
    </item>
    <item>
      <title>Maybe the focussqq function</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937952#M89296</link>
      <description>&lt;P&gt;Maybe the focussqq function will do what you need...&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 07:45:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937952#M89296</guid>
      <dc:creator>onkelhotte</dc:creator>
      <dc:date>2013-07-01T07:45:53Z</dc:date>
    </item>
    <item>
      <title>I already but an API setfocus</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937953#M89297</link>
      <description>&lt;P&gt;I already but an API setfocus in the repaint routine. It does help but you click a dialog option and the graphics window hides, you click the redraw button I added and it appears again.... &amp;nbsp;You can also arrange the screen(s) so the frames and graphics windows do not overlap, the problem is that it is a 'child' window of the application but is not in the window hirearchay of the apllication frame window. i think becase the OGL window needs a different context..... :-(&lt;/P&gt;
&lt;P&gt;Still looking for a way to fix it properly&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 09:06:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937953#M89297</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2013-07-01T09:06:14Z</dc:date>
    </item>
    <item>
      <title>Have you tried adding WS_EX</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937954#M89298</link>
      <description>&lt;P&gt;Have you tried adding WS_EX_TOPMOST style to your window?&lt;/P&gt;
&lt;P&gt;WS_EX_TOPMOST Specifies that a window created with this style should be placed above all non-topmost windows and should stay above them, even when the window is deactivated. To add or remove this style, use the &lt;A href="https://community.intel.com/windows_2blf.htm"&gt;&lt;B&gt;SetWindowPos&lt;/B&gt;&lt;/A&gt; function.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 12:53:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937954#M89298</guid>
      <dc:creator>Anthony_Richards</dc:creator>
      <dc:date>2013-07-01T12:53:39Z</dc:date>
    </item>
    <item>
      <title>Thanks Anthony that is indeed</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937955#M89299</link>
      <description>&lt;P&gt;Thanks Anthony that is indeed what I was looking for. I already use Setwindowpos for x,y position but I hadn't realised you can set the z order by flag or relative to another window using an optional parameter. It works perfectly now.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 16:27:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OPENGL-Window-in-Quickwin-window-order-problem/m-p/937955#M89299</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2013-07-01T16:27:53Z</dc:date>
    </item>
  </channel>
</rss>

