News:

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

Main Menu

Creating a StatusBar

Started by HellOfMice, January 08, 2025, 10:44:42 PM

Previous topic - Next topic

HellOfMice

StatusBar PROC USES R11 R12 PARMAREA=13*QWORD

mov rdx,[hInstance+rip]
mov rax,[hWndMain+rip]
xor ecx,ecx
xorpd xmm0,xmm0
shufpd xmm0,xmm0,0
movdqu [rsp + 32],xmm0
movdqu [rsp + 48],xmm0
movq [rsp + 72],xmm0
movq [rsp + 88],xmm0
mov [rsp + 80],rdx ; hInstance
mov [rsp + 64],rax ; hWndParent
mov r9d,WS_CHILD or SBARS_SIZEGRIP or WS_VISIBLE
lea r8,szNullString+rip
lea rdx,WC_STATUSCLASSNAME+rip
call CreateWindowExA

mov [hStatus+rip],rax

mov rcx,rax
mov edx,SB_SETPARTS
mov r8d,7
mov r9,OFFSET StatWidths
call SendMessageA
ret
StatusBar ENDP