Assembly language > Assembly discussions

Status bar example

(1/1)

Vortex:
Status bar example :


--- Code: ---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
--- End code ---

TimoVJL:
Nice.
We should make some templates for starters.
Lot easier to start a project from tested template.

Vortex:
Hi Timo,

Thanks, that's a nice idea.

Navigation

[0] Message Index

Go to full version