|
|
|
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.
|
|
|
|
METHOD:
|
destructor (NONE)
|
|
DESCRIPTION:
|
Basic destructor setup, no extra procedures are included. .
|
|
|
|
|
|
RETURN:
|
if zero,not a flat button;otherwise is.
|
|
|
|
DESCRIPTION:
|
Set if it is a flat button.
|
|
|
FFlags
|
if zero,not a flat button;otherwise is(Default is zero) .
|
|
|
|
|
DESCRIPTION:
|
treat with WM_DRAWITEM message.This method should be
called in parent window' message procedure.
|
|
|
lParam
|
the lParam parameter of WM_DRAWITEM.
|
|
|
|
|
DESCRIPTION:
|
Get text of this Flat Button .
|
|
|
RETURN:
|
Return a pointer to the button text.
|
|
|
|
DESCRIPTION:
|
Set text of this flat button.
|
|
|
lpText
|
the pointer of new text to be setted.
must be null-terminated.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
|
DESCRIPTION:
|
Get handle of button.
|
|
|
RETURN:
|
Handle of button.
|
|
|
|
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.
|
|
|
|
DESCRIPTION:
|
Get cursor when mouse over the button.
|
|
|
|
METHOD:
|
SetCursor (:DWORD,:DWORD)
|
|
DESCRIPTION:
|
Set cursor when mouse over the button.
|
|
|
hInst
|
Instance of parent window.
|
|
|
CurID
|
resource identifier of cursor.
|
|
|
|
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).
|
|
|