Click here to Skip to main content
15,892,746 members
Articles / Programming Languages / ASM

MASM ImageFader

Rate me:
Please Sign up or sign in to vote.
3.89/5 (15 votes)
19 Jan 2013CPOL1 min read 69.2K   679   26  
An Image fader application. This hides information behinde an image and fades it out onMouseOver to display the content behind the image. Useful for hiding something, or as a stylish accessory.
; #########################################################################	
;
;	Filename:		GUIFadeImage.inc
;	Version			1.0
;	Date/Author:	10.09.2005, dave (juniorsoft)
;	Description:	Header File for GUIFadeImage.asm. Here are
;					all the nessesary definitions, prototypes etc for the
;					GUI sources
;
; #########################################################################

;	~~~~~~~~~~~~~~
;	include files
;	~~~~~~~~~~~~~~
	include \masm32\include\windows.inc
	include \masm32\include\masm32.inc
	include \masm32\include\gdi32.inc
	include \masm32\include\user32.inc
	include \masm32\include\kernel32.inc
	include \masm32\include\Comctl32.inc
	include \masm32\include\comdlg32.inc
	include \masm32\include\shell32.inc
	include \masm32\include\shlwapi.inc
	include \masm32\include\oleaut32.inc
	include \masm32\macros\macros.asm

	include \masm32\include\dialogs.inc

	; Applicationspecific includes          
	include Config.inc											; "Config"-file					
	include FadeImageCtrl.inc									; FadeImageCtrl

;	~~~~~~~~~~
;	libraries
;	~~~~~~~~~~
	includelib \masm32\lib\masm32.lib
	includelib \masm32\lib\gdi32.lib
	includelib \masm32\lib\user32.lib
	includelib \masm32\lib\kernel32.lib
	includelib \masm32\lib\Comctl32.lib
	includelib \masm32\lib\comdlg32.lib
	includelib \masm32\lib\shell32.lib
	includelib \masm32\lib\shlwapi.lib
	includelib \masm32\lib\oleaut32.lib

; #########################################################################

;	~~~~~~~~~~~~~~~~~
;	local prototypes
;	~~~~~~~~~~~~~~~~~	
	WinMain					PROTO :DWORD,:DWORD,:DWORD,:DWORD
	DlgProc					PROTO :DWORD,:DWORD,:DWORD,:DWORD	; Dialog message procedure	
	FillInfos				PROTO								; Fills the infotext to backlables 

;	~~~~~~~~~~~~~~~~
;	initalized data
;	~~~~~~~~~~~~~~~~
    .data
	sDlgName				db "MyDialog",0						; Internal name for Dialog

;	~~~~~~~~~~~~~~~~~~
;	uninitalized data
;	~~~~~~~~~~~~~~~~~~
    .data?
	hInstance				dd ?								; HANDLE to Base-Module/Instance
	hWndDlg					dd ?								; HANDLE to Main-Dlg
	hIcon					dd ?								; HICON of application icon
              
;	~~~~~~~~~~~~~~~~	
;	constant values
;	~~~~~~~~~~~~~~~~	 
	.const
	;Icon/Bitmap handles
	IDI_ICON				equ 	105							; Main Icon
	IDB_MAINBMP				equ 	107							; Main Bitmap (for FadeImageCtrl)
	
	;Controls-IDs
	IDC_STATIC				equ		-1							; Default Static
	IDC_CREDIT				equ		1002						; lblCredit
	
	IDC_LBLCOMPANY			equ		1006						; lblCompany
	IDC_LBLVERSION			equ		1008						; lblVersion
	IDC_LBLPRODUCT			equ		1007						; lblProduct
	
	IDC_FADEOUT				equ		1010						; cmdFadeOut
	IDC_FADEIN				equ		1071						; cmdFadeIn

	IDC_GROUPBOX			equ		3000						; grpBox
	IDC_EXIT				equ		3002						; cmdExit
	IDC_BMP					equ		3004						; ID for our new FadeImageCtrl

	;Message-IDs
	IDM_EXIT				equ		32003						; Exit-Msg
	

; #########################################################################
	
; ########################### Inserted modules ############################

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Switzerland Switzerland
programmer and software junkie since 1991 zurich switzerland

Comments and Discussions