News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Status bar example

Started by Vortex, November 19, 2023, 10:19:41 PM

Previous topic - Next topic

Vortex

Here is a status bar example :

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