NO

Author Topic: Status bar example  (Read 278 times)

Online Vortex

  • Member
  • *
  • Posts: 792
    • http://www.vortex.masmcode.com
Status bar example
« 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
Code it... That's all...

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: Status bar example
« Reply #1 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.
May the source be with you

Online Vortex

  • Member
  • *
  • Posts: 792
    • http://www.vortex.masmcode.com
Re: Status bar example
« Reply #2 on: November 22, 2023, 09:47:19 PM »
Hi Timo,

Thanks, that's a nice idea.
Code it... That's all...