td win32asm 012.asm
TRANSCRIPT
-
8/10/2019 Td Win32asm 012.Asm
1/11
td_win32asm_012.asm;==============================================================================; Test Department's WINDOWS 32 BIT x86 ASSEMBLY example's 012;==============================================================================
;==============================================================================; ==> Part 012 : Trackbar control class (Slider);------------------------------------------------------------------------------
; Bonjour,; What should I say, controls are us, laughing ...;; Hint: Not all controls send a NM_CLICK message (for example this trackbar) !;;; cya;; 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 comctl32.libincludelib gdi32.lib
;==============================================================================; Declaration of used API functions,take a look into WIN32.HLP and *.inc files;------------------------------------------------------------------------------GetModuleHandleA PROTO :DWORD
MessageBoxA PROTO :DWORD,:DWORD,:DWORD,:DWORDInitCommonControls PROTOLoadIconA PROTO :DWORD,:DWORDLoadCursorA PROTO :DWORD,:DWORDRegisterClassExA PROTO :DWORDCreateSolidBrush PROTO :DWORDCreateWindowExA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD, :DWORD,:DWORD,:DWORD,:DWORD,:DWORDShowWindow PROTO :DWORD,:DWORDUpdateWindow PROTO :DWORDGetMessageA PROTO :DWORD,:DWORD,:DWORD,:DWORD
TranslateMessage PROTO :DWORDDispatchMessageA PROTO :DWORDPostQuitMessage PROTO :DWORDDefWindowProcA PROTO :DWORD,:DWORD,:DWORD,:DWORD
Page 1
-
8/10/2019 Td Win32asm 012.Asm
2/11
-
8/10/2019 Td Win32asm 012.Asm
3/11
-
8/10/2019 Td Win32asm 012.Asm
4/11
-
8/10/2019 Td Win32asm 012.Asm
5/11
-
8/10/2019 Td Win32asm 012.Asm
6/11
-
8/10/2019 Td Win32asm 012.Asm
7/11
-
8/10/2019 Td Win32asm 012.Asm
8/11
-
8/10/2019 Td Win32asm 012.Asm
9/11
-
8/10/2019 Td Win32asm 012.Asm
10/11
-
8/10/2019 Td Win32asm 012.Asm
11/11
td_win32asm_012.asm; My own subroutine(s) for a compacter code resist here ...;------------------------------------------------------------------------------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_static ;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_012.asm ;asm command; rc.exe /v rsrc.rc ;rc command; cvtres.exe /machine:ix86 rsrc.res; link.exe /subsystem:windows td_win32asm_012.obj rsrc.obj ;link command;==============================================================================
Page 11