home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Hutch / DOWNLOAD / Example2.exe / SPLASH / STATUSBR.ASM < prev    next >
Encoding:
Assembly Source File  |  1999-06-08  |  969 b   |  35 lines

  1. ; ##########################################################################
  2.  
  3.     Do_Status PROTO :DWORD
  4.  
  5.     .data
  6.         hStatus       dd 0
  7.  
  8.     .code
  9.  
  10. ; ##########################################################################
  11.  
  12. Do_Status proc hParent:DWORD
  13.  
  14.     LOCAL sbParts[4] :DWORD
  15.  
  16.     invoke CreateStatusWindow,WS_CHILD or WS_VISIBLE or \
  17.                               SBS_SIZEGRIP,NULL, hParent, 200
  18.     mov hStatus, eax
  19.       
  20.     ; -------------------------------------
  21.     ; sbParts is a DWORD array of 4 members
  22.     ; -------------------------------------
  23.     mov [sbParts +  0],   125    ; pixels from left
  24.     mov [sbParts +  4],   250    ; pixels from left
  25.     mov [sbParts +  8],   375    ; pixels from left
  26.     mov [sbParts + 12],    -1    ; last part
  27.  
  28.     invoke SendMessage,hStatus,SB_SETPARTS,4,ADDR sbParts
  29.  
  30.     ret
  31.  
  32. Do_Status endp
  33.  
  34. ; ##########################################################################
  35.