CLASS: CFButton
AUTHOR: Smallwaves
DATE: Jan,12, 2002
DESCRIPTION: Masm32 Flat Button Class V1.02. (FLAT BUTTON).

METHOD: CONSTRUCTOR (:DWORD,:DWORD,:DWORD,:DWORD)
DESCRIPTION: Initialize Flat Button(Load Icon to display, Set Default text and color,and sublcass this button).
hInst Instance of parent window.
hWnd Handle of parent window.
IconID the resource identifier of icon to be setted.
BtnID resource identifier of this button.
RETURN: Nothing.

METHOD: destructor (NONE)
DESCRIPTION: Basic destructor setup, no extra procedures are included. .
RETURN: Nothing.

METHOD: GetFlat(NONE)
RETURN: if zero,not a flat button;otherwise is.

METHOD: SetFlat(:DWORD)
DESCRIPTION: Set if it is a flat button.
FFlags if zero,not a flat button;otherwise is(Default is zero) .
RETURN: Nothing.

METHOD: DrawItem(:DWORD)
DESCRIPTION: treat with WM_DRAWITEM message.This method should be called in parent window' message procedure.
lParam the lParam parameter of WM_DRAWITEM.
RETURN: Nothing.

METHOD: GetText(NONE)
DESCRIPTION: Get text of this Flat Button .
RETURN: Return a pointer to the button text.

METHOD: SetText (:DWORD)
DESCRIPTION: Set text of this flat button.
lpText the pointer of new text to be setted. must be null-terminated.
RETURN: Nothing.

METHOD: GetActiveTextCol (NONE)
DESCRIPTION: Get Text Color when mouse over button.
RETURN: Active Text Color.

METHOD: SetActiveTextCol (:DWORD)
DESCRIPTION: Set Text Color when mouse over button.
Col RGB Color should be setted.
RETURN: Nothing.

METHOD: GetInactiveTextCol (NONE)
DESCRIPTION: Get Text color when mouse not over button.
RETURN: Inactive Text Color.

METHOD: SetInactiveTextCol (:DWORD)
DESCRIPTION: Set Text color when mouse not over button.
Col RGB Color should be setted.
RETURN: Nothing.

METHOD: GetActiveBkCol (NONE)
DESCRIPTION: Get Back color when mouse over button.
RETURN: Active back color.

METHOD: SetActiveBkCol (:DWORD)
DESCRIPTION: Set Back color when mouse over button.
Col RGB Color should be setted.
RETURN: Nothing.

METHOD: GetInactiveBkCol (NONE)
DESCRIPTION: Get Back color when mouse not over button.
RETURN: Inactive Back Color.

METHOD: SetInactiveBkCol (:DWORD)
DESCRIPTION: Set Back color when mouse not over button.
Col RGB Color should be setted.
RETURN: Nothing.

METHOD: GetActiveIcon(NONE)
DESCRIPTION: Get button icon when mouse over button.
RETURN: Handle of Active Icon .

METHOD: SetActiveIcon(:DWORD,:DWORD)
DESCRIPTION: Set button icon when mouse over button.
hInst Instance of parent window.
IconID resource identifier of icon.
RETURN: Nothing.

METHOD: GethWnd (NONE)
DESCRIPTION: Get handle of button.
RETURN: Handle of button.

METHOD: GetIconBtn(NONE)
DESCRIPTION: Get general icon.
RETURN: Handle of general icon.

METHOD: SetIconBtn(:DWORD,:DWORD)
DESCRIPTION: Set general icon.
hInst Instance of parent window.
IconID Icon resource identifier.
RETURN: Handle of previous general icon.

METHOD: GetCursor (NONE)
DESCRIPTION: Get cursor when mouse over the button.
RETURN: Nothing.

METHOD: SetCursor (:DWORD,:DWORD)
DESCRIPTION: Set cursor when mouse over the button.
hInst Instance of parent window.
CurID resource identifier of cursor.
RETURN: Nothing.

METHOD: IconBtnProc (:DWORD,:DWORD,:DWORD,:DWORD)
DESCRIPTION: This is a subclass procedure and should never be called by user (Special thanks should give: this procedure is mainly from the method of davide_calabro's CButtonST v2.3).



MASM Object To HTML Creator V1.0
Copyright ©2001 NaN Software.
NAN32ASM.CJB.NET