NO

Author Topic: Status bar example  (Read 1836 times)

Offline Vortex

  • Member
  • *
  • Posts: 882
    • 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: 2131
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

Offline Vortex

  • Member
  • *
  • Posts: 882
    • 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...