of 17
7/23/2019 Td Win32asm 027.Asm
1/17
td_win32asm_027.asm;==============================================================================; Test Department's WINDOWS 32 BIT x86 ASSEMBLY example's 027;==============================================================================
;==============================================================================; ==> Part 027 : Cool control (ReBar control);------------------------------------------------------------------------------
; ey cool ey,; cool control is a powerfull control and I'm sure you will enjoy.; Today I'm very unkind (laughing), so only the basic stuff is shown.; You can add as much controls and bands you like to a cool control.; Background bitmaps are simple textures, cool control seems to autostretch them.;; Of course there is also some trouble waiting for us ...; For me cool control type do not work with ComboBox, you must use ComboBoxEx32.; If you wonna be supercool assign a Toolbar / Toolbar frame to the cool control.; You must use the common control styles 'CCS_NOPARENTALIGN' and 'CCS_NORESIZE'
; on API 'CreateToolbarEx' !;;; Will be continued ...;; The API 'InitCommonControls' is obsolete,so use API 'InitCommonControlsEx'.; The recommend help file for all control example is shellcc.chm/shellcc.chi.;;;; cool TD [email protected]
;
;==============================================================================; Assembler directives;------------------------------------------------------------------------------.386 ; the processor our program want run on.Model Flat ,StdCall ; always the same for Win9x (32 Bit)option casemap:none ; case sensitive !!!
;==============================================================================
; Include all files where API functins resist you want use, set correct path;------------------------------------------------------------------------------include D:\Masm32\include\windows.incincludelib kernel32.libincludelib user32.libincludelib gdi32.libincludelib comctl32.lib
;==============================================================================; Declaration of used API functions,take a look into WIN32.HLP and *.inc files;------------------------------------------------------------------------------
GetModuleHandleA PROTO :DWORDInitCommonControlsEx PROTO :DWORDLoadIconA PROTO :DWORD,:DWORDLoadCursorA PROTO :DWORD,:DWORD
Page 1
7/23/2019 Td Win32asm 027.Asm
2/17
7/23/2019 Td Win32asm 027.Asm
3/17
7/23/2019 Td Win32asm 027.Asm
4/17
7/23/2019 Td Win32asm 027.Asm
5/17
7/23/2019 Td Win32asm 027.Asm
6/17
7/23/2019 Td Win32asm 027.Asm
7/17
7/23/2019 Td Win32asm 027.Asm
8/17
7/23/2019 Td Win32asm 027.Asm
9/17
7/23/2019 Td Win32asm 027.Asm
10/17
7/23/2019 Td Win32asm 027.Asm
11/17
7/23/2019 Td Win32asm 027.Asm
12/17
7/23/2019 Td Win32asm 027.Asm
13/17
7/23/2019 Td Win32asm 027.Asm
14/17
7/23/2019 Td Win32asm 027.Asm
15/17
7/23/2019 Td Win32asm 027.Asm
16/17
d i 32 027
7/23/2019 Td Win32asm 027.Asm
17/17
td_win32asm_027.asmret
My_CleanSystem:;------------------------------------------------------------------------------; API "DeleteObject" deletes a logical pen, brush, font, bitmap, region, or; palette, freeing all system resources associated with the object.; After the object is deleted, the specified handle is no longer valid.
;------------------------------------------------------------------------------push hImg_rebarband0 ;hObject, handle objectcall DeleteObject ;- API Function -push hImg_rebarband1 ;hObject, handle objectcall DeleteObject ;- API Function -push hImg_rebarband2 ;hObject, handle objectcall DeleteObject ;- API Function -ret;******************************************************************************
;==============================================================================
; end Main = end of our program code;------------------------------------------------------------------------------end Main ;end of our program code, entry point
;==============================================================================; To create the exe file use this commands with your Microsoft Assembler/Linker;------------------------------------------------------------------------------; ml.exe /c /coff td_win32asm_027.asm ;asm command; rc.exe /v rsrc.rc ;rc command; cvtres.exe /machine:ix86 rsrc.res
; link.exe /subsystem:windows td_win32asm_027.obj rsrc.obj ;link command;==============================================================================
Page 17