-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatusbr.asm
34 lines (22 loc) · 935 Bytes
/
statusbr.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
; ##########################################################################
Do_Status PROTO :DWORD
.data
hStatus dd 0
.code
; ##########################################################################
Do_Status proc hParent:DWORD
LOCAL sbParts[4] :DWORD
invoke CreateStatusWindow,WS_CHILD or WS_VISIBLE or \
SBS_SIZEGRIP,NULL, hParent, 200
mov hStatus, eax
; -------------------------------------
; sbParts is a DWORD array of 4 members
; -------------------------------------
mov [sbParts + 0], 125 ; pixels from left
mov [sbParts + 4], 250 ; pixels from left
mov [sbParts + 8], 375 ; pixels from left
mov [sbParts + 12], -1 ; last part
invoke SendMessage,hStatus,SB_SETPARTS,4,ADDR sbParts
ret
Do_Status endp
; ##########################################################################