Pelles C forum

Assembly language => Assembly discussions => Topic started by: Vortex on November 22, 2023, 08:33:56 PM

Title: Status bar example
Post by: Vortex on November 22, 2023, 08:33:56 PM
Status bar example :

Code: [Select]
DlgProc PROC hWnd:DWORD,uMsg:DWORD,wParam:DWORD,lParam:DWORD

    .IF uMsg==WM_INITDIALOG

        xor     ecx,ecx
        invoke  CreateWindowEx,ecx,\
                @Cstr("msctls_statusbar32"),@Cstr("Status bar"),\
                WS_CHILD or WS_VISIBLE,\
                ecx,278,500,22,\
                hWnd,IDW_STATBAR,hModule,ecx

        invoke  SendMessage,eax,SB_SETBKCOLOR,0,StatBarCol
Title: Re: Status bar example
Post by: TimoVJL on November 22, 2023, 09:31:54 PM
Nice.
We should make some templates for starters.
Lot easier to start a project from tested template.
Title: Re: Status bar example
Post by: Vortex on November 22, 2023, 09:47:19 PM
Hi Timo,

Thanks, that's a nice idea.