<?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 Re: I can not create rebar with CreateWindowEx() in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842626#M60595</link>
    <description>Well, for the start, it has zero dimensions so it can hardly be visible. Besides, the rebar's behavior is fairly peculiar, as it automatically accomodates its dimensions to the parent window client area and included toolbars; it might be easily the case that you won't see anything until you add a child (toolbar) into it.&lt;BR /&gt;&lt;BR /&gt;In any case, Spy++ is your friend.&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Sep 2007 14:34:23 GMT</pubDate>
    <dc:creator>Jugoslav_Dujic</dc:creator>
    <dc:date>2007-09-13T14:34:23Z</dc:date>
    <item>
      <title>I can not create rebar with CreateWindowEx()</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842625#M60594</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;The code is following:&lt;/P&gt;
&lt;P&gt;hRebar=CreateWindowEx (WS_EX_TOOLWINDOW, &amp;amp;&lt;BR /&gt; "ReBarWindow32"C, &amp;amp;&lt;BR /&gt; "jhlj", &amp;amp;&lt;BR /&gt; ior(WS_VISIBLE,,WS_CHILD),&amp;amp;&lt;BR /&gt; 0,&amp;amp;&lt;BR /&gt; 0,&amp;amp;&lt;BR /&gt; 0,&amp;amp;&lt;BR /&gt; 0,&amp;amp;&lt;BR /&gt; hWnd, &amp;amp;&lt;BR /&gt; null,&amp;amp;&lt;BR /&gt; HInst, &amp;amp;&lt;BR /&gt; NULL)&lt;/P&gt;
&lt;P&gt;BUT it can not show the rebar window.I don't kown why.&lt;/P&gt;
&lt;P&gt;Many thanks for any help!!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2007 08:33:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842625#M60594</guid>
      <dc:creator>lm_lxt</dc:creator>
      <dc:date>2007-09-13T08:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: I can not create rebar with CreateWindowEx()</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842626#M60595</link>
      <description>Well, for the start, it has zero dimensions so it can hardly be visible. Besides, the rebar's behavior is fairly peculiar, as it automatically accomodates its dimensions to the parent window client area and included toolbars; it might be easily the case that you won't see anything until you add a child (toolbar) into it.&lt;BR /&gt;&lt;BR /&gt;In any case, Spy++ is your friend.&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Sep 2007 14:34:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842626#M60595</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2007-09-13T14:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: I can not create rebar with CreateWindowEx()</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842627#M60596</link>
      <description>&lt;P&gt;Many Thanks!But I have another problem that the width of verticalrebar have the same value in any case! The following is my resource:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;module Constant&lt;BR /&gt; use IFwin&lt;BR /&gt; use COMCTL32&lt;/P&gt;
&lt;P&gt; integer*4 hInst ,hh&lt;/P&gt;
&lt;P&gt; character*200 string &lt;BR /&gt; logical*4 results&lt;/P&gt;
&lt;P&gt; integer*4,parameter:: NumButton = 4&lt;/P&gt;
&lt;P&gt; type( T_TBBUTTON ), DIMENSION(*) :: tbrButtons( NumButton ) &lt;BR /&gt;end module Constant&lt;BR /&gt; &lt;BR /&gt;module Toolbar&lt;BR /&gt; integer*4,parameter:: IDC_CURSOR1 =101&lt;BR /&gt; integer*4,parameter:: IDI_ICON1 =102&lt;BR /&gt; integer*4,parameter:: IDR_MENU1 =103&lt;BR /&gt; &lt;BR /&gt; integer*4,parameter:: ID_40001 =40001&lt;BR /&gt; integer*4,parameter:: ID_40002 =40002&lt;BR /&gt; integer*4,parameter:: ID_40003 =40003&lt;BR /&gt; integer*4,parameter:: ID_40004 =40004 &lt;BR /&gt;end module Toolbar&lt;BR /&gt;!&lt;BR /&gt;integer function WinMain( hInstance, hPrevInstance, lpszCmdLine, nCmdShow )&lt;BR /&gt;!DEC$ IF DEFINED(_X86_)&lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : &lt;A href="mailto:'_WinMain@16'"&gt;'_WinMain@16'&lt;/A&gt; :: WinMain&lt;BR /&gt;!DEC$ ELSE&lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : 'WinMain' :: WinMain&lt;BR /&gt;!DEC$ ENDIF&lt;BR /&gt;use Constant&lt;BR /&gt;use Toolbar&lt;/P&gt;
&lt;P&gt;integer*4 hInstance &lt;BR /&gt;integer*4 hPrevInstance &lt;BR /&gt;integer*4 nCmdShow&lt;BR /&gt;integer*4 lpszCmdLine &lt;/P&gt;
&lt;P&gt;integer*4 i,istyle&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;interface &lt;BR /&gt;integer*4 function MainWndProc ( hwnd, mesg, wParam, lParam )&lt;BR /&gt;!DEC$ IF DEFINED(_X86_)&lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : &lt;A href="mailto:'_MainWndProc@16'"&gt;'_MainWndProc@16'&lt;/A&gt; :: MainWndProc&lt;BR /&gt;!DEC$ ELSE&lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : 'MainWndProc' :: MainWndProc&lt;BR /&gt;!DEC$ ENDIF&lt;/P&gt;
&lt;P&gt;integer*4 hwnd &lt;BR /&gt;integer*4 mesg &lt;BR /&gt;integer*4 wParam&lt;BR /&gt;integer*4 lParam &lt;BR /&gt;end function &lt;BR /&gt;end interface&lt;BR /&gt;!============================================================== &lt;BR /&gt;type ( T_WNDCLASS ) wc &lt;/P&gt;
&lt;P&gt;type ( T_MSG ) mesg&amp;amp;
nbsp;&lt;/P&gt;
&lt;P&gt;integer*4 hWnd,Hbitmap1 &lt;BR /&gt;integer*4 COLOR &lt;BR /&gt;character*100 lpszClassName &lt;/P&gt;
&lt;P&gt;character*100 lpszAppName&lt;/P&gt;
&lt;P&gt;COLOR=9&lt;/P&gt;
&lt;P&gt;lpszClassName ="GenericClass"C&lt;BR /&gt;lpszAppName ="hhh"C&lt;BR /&gt;if(hPrevInstance .eq. 0) then&lt;BR /&gt; wc%lpszClassName = LOC( lpszClassName )&lt;BR /&gt; wc%lpfnWndProc = LOC( MainWndProc )&lt;BR /&gt; wc%style = 0&lt;BR /&gt; wc%hInstance = hInstance&lt;/P&gt;
&lt;P&gt; wc%hIcon = LoadIcon( hInstance, IDI_ICON1)&lt;BR /&gt; wc%hCursor = LoadCursor( hInstance, IDC_CURSOR1 )&lt;BR /&gt; wc%hbrBackground = ( COLOR_WINDOW+COLOR )&lt;BR /&gt; wc%lpszMenuName = IDR_MENU1&lt;BR /&gt; wc%cbClsExtra = 0&lt;BR /&gt; wc%cbWndExtra = 0&lt;BR /&gt; i = RegisterClass( wc )&lt;BR /&gt;end if&lt;/P&gt;
&lt;P&gt;hh=hInstance&lt;BR /&gt;hWnd = CreateWindowEx( 0,&lt;BR /&gt;&amp;amp;
nbsp; lpszClassName, lpszAppName,&lt;/P&gt;
&lt;P&gt; INT( WS_OVERLAPPEDWINDOW ),&lt;BR /&gt; CW_USEDEFAULT,&lt;BR /&gt; 0,&lt;BR /&gt; CW_USEDEFAULT,&lt;BR /&gt; 0,&lt;BR /&gt; NULL,&lt;BR /&gt; NULL,&lt;BR /&gt; hInstance,&lt;BR /&gt; NULL&lt;BR /&gt; )&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;i = ShowWindow( hWnd, SW_MAXIMIZE )&lt;BR /&gt;i = UpdateWindow( hWnd )&lt;BR /&gt;do while( GetMessage (mesg, NULL, 0, 0) .NEQV. .FALSE.)&lt;BR /&gt; i = TranslateMessage( mesg )&lt;BR /&gt; i = DispatchMessage( mesg )&lt;BR /&gt;end do&lt;/P&gt;
&lt;P&gt;WinMain
 = mesg%wParam&lt;BR /&gt;return&lt;BR /&gt;end function WinMain&lt;BR /&gt;!&lt;BR /&gt;integer*4 function MainWndProc ( hWnd, mesg, wParam, lParam )&lt;BR /&gt;!DEC$ IF DEFINED(_X86_)&lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : &lt;A href="mailto:'_MainWndProc@16'"&gt;'_MainWndProc@16'&lt;/A&gt; :: MainWndProc&lt;BR /&gt;!DEC$ ELSE&lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : 'MainWndProc' :: MainWndProc&lt;BR /&gt;!DEC$ ENDIF&lt;/P&gt;
&lt;P&gt;use Constant&lt;BR /&gt;use Toolbar&lt;/P&gt;
&lt;P&gt;integer*4 hWnd&lt;/P&gt;
&lt;P&gt;integer*4 mesg&lt;BR /&gt;integer*4 wParam &lt;BR /&gt;integer*4 lParam &lt;/P&gt;
&lt;P&gt;!====================================================&lt;BR /&gt;interface &lt;BR /&gt;logical function DialogFunc ( hdWnd, mesg, wParam, lParam )&lt;BR /&gt;!DEC$ IF DEFINED(_X86_)&lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : &lt;A href="mailto:'_DialogFunc@16'"&gt;'_DialogFunc@16'&lt;/A&gt; :: DialogFunc&lt;BR /&gt;!DEC$ ELSE&lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : 'DialogFunc' :: DialogFunc&lt;BR /&gt;!DEC$ ENDIF&lt;/P&gt;
&lt;P&gt;integer*4 hdWnd &lt;BR /&gt;integer*4 mesg &lt;BR /&gt;integer*4 wParam&lt;BR /&gt;integer*4 lParam &lt;BR /&gt;end function &lt;BR /&gt;end interface&lt;BR /&gt;!====================================================&lt;BR /&gt;integer*4 hdc, hRebar,Hbitmap1,dwBtnSize&lt;BR /&gt;type(t_REBARINFO) rbi&lt;BR /&gt;type(t_REBARBANDINFO) rbBand&lt;BR /&gt;select case ( mesg )&lt;BR /&gt; case(WM_CREATE)&lt;BR /&gt; &lt;BR /&gt; call INITCOMMONCONTROLS()&lt;BR /&gt; hRebar=CreateWindowEx (0, &amp;amp;&lt;BR /&gt; "ReBarWindow32"C, &amp;amp;&lt;BR /&gt; "dsh", &amp;amp;&lt;BR /&gt; ior(ior(ior(ior(ws_visible,WS_child),WS_THICKFRAME),ior(WS_caption,ws_sysmenu)),ior(CCS_left,CCS_NOPARENTALIGN )),&amp;amp;&lt;BR /&gt; CW_USEDEFAULT,&amp;amp;&lt;BR /&gt; CW_USEDEFAULT,&amp;amp;&lt;BR /&gt; 0,&amp;amp;&lt;BR /&gt; 300,&amp;amp;&lt;BR /&gt; hWnd, &amp;amp;&lt;BR /&gt; ID_40001,&amp;amp;&lt;BR /&gt; hh, &amp;amp;&lt;BR /&gt;
 NULL)&lt;/P&gt;
&lt;P&gt; call InitToolBar( )&lt;BR /&gt; Hbitmap1=LoadImage(hRebar,"toolbar1.bmp",IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE) &lt;BR /&gt; hInst = CreateToolbarEx( hRebar, &amp;amp;&lt;BR /&gt; ior( ior(WS_VISIBLE ,WS_CHILD),tbstyle_wrapable),&amp;amp;&lt;BR /&gt; null, &amp;amp;&lt;BR /&gt; NumButton, &amp;amp;&lt;BR /&gt; null, &amp;amp;&lt;BR /&gt; Hbitmap1, &amp;amp;&lt;BR /&gt; tbrButtons, &amp;amp;&lt;BR /&gt; NumButton, &amp;amp;&lt;BR /&gt; 35,35,0,0, &amp;amp;&lt;BR /&gt; sizeof(tbrButtons(1))) &lt;BR /&gt; &lt;BR /&gt; results= MoveWindow(hRebar,50,50,100,100,TRUE) &lt;BR /&gt; case (WM_SIZE)&lt;BR /&gt; ! hdc=SendMessage(hRebar, WM_SIZE, wParam, lParam)&lt;BR /&gt; ! hdc=SendMessage(hInst, WM_SIZE, SIZE_RESTORED, lParam)&lt;BR /&gt; case( WM_COMMAND )&lt;BR /&gt; select case( wParam )&lt;BR /&gt; c
ase( ID_40001 )&lt;BR /&gt; case( ID_40002 )&lt;BR /&gt; hdc=MessageBox(hWnd,"open","open",MB_OK)&lt;BR /&gt; case( ID_40003 )&lt;BR /&gt; hdc=MessageBox(hWnd,"save","save",MB_OK)&lt;BR /&gt; case( ID_40004 )&lt;BR /&gt; call PostQuitMessage( 0 )&lt;BR /&gt; end select&lt;BR /&gt; !case ( WM_SIZE )&lt;BR /&gt; ! hdc=SendMessage(hInst,WM_SIZE,SIZE_RESTORED,iParam)&lt;BR /&gt; case ( WM_DESTROY )&lt;BR /&gt; call PostQuitMessage( 0 )&lt;BR /&gt; case default&lt;/P&gt;
&lt;P&gt; MainWndProc = DefWindowProc( hWnd, mesg, wParam, lParam )&lt;BR /&gt;end select&lt;BR /&gt;return&lt;BR /&gt;end function MainWndProc&lt;BR /&gt;!&lt;BR /&gt;subroutine InitToolBar( )&lt;BR /&gt; use Constant&lt;BR /&gt; use Toolbar&lt;BR /&gt; integer j &lt;BR /&gt; &lt;BR /&gt; j = ID_40001&lt;BR /&gt; do i = 1 ,NumButton&lt;BR /&gt; tbrButtons(i)%iBitmap = i-1&lt;BR /&gt; tbrButtons(i)%idCommand = j&lt;BR /&gt; tbrButtons(i)%fsState = TBSTATE_ENABLED&lt;BR /&gt; tbrButtons(i)%fsStyle = TBSTYLE_BUTTON&lt;BR /&gt; tbrButtons(i)%dwData = 0&lt;BR /&gt; tbrButtons(i)%iString = 0 &lt;BR /&gt; j =j+1&lt;BR /&gt; enddo&lt;BR /&gt; return&lt;BR /&gt;end subroutine InitToolBar&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2007 15:40:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842627#M60596</guid>
      <dc:creator>lm_lxt</dc:creator>
      <dc:date>2007-09-15T15:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: I can not create rebar with CreateWindowEx()</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842628#M60597</link>
      <description>The same value of width as... ? &lt;BR /&gt;&lt;BR /&gt;I'm not too familiar with rebars (I made a working one long time ago). Take a look on "common control styles" and "Rebar control styles" pages. I think you need one or more of CCS_VERT, RBS_VARHEIGHT and CCS_LEFT/CCS_RIGHT. CCS_NOPARENTALIGN should prevent it from auto-alignment. &lt;BR /&gt;</description>
      <pubDate>Mon, 17 Sep 2007 12:53:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842628#M60597</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2007-09-17T12:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: I can not create rebar with CreateWindowEx()</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842629#M60598</link>
      <description>&lt;P&gt;Many thanks! I got the answers.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2007 02:54:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/I-can-not-create-rebar-with-CreateWindowEx/m-p/842629#M60598</guid>
      <dc:creator>lm_lxt</dc:creator>
      <dc:date>2007-09-21T02:54:30Z</dc:date>
    </item>
  </channel>
</rss>

