InnoStage.GUI.EnhancedLabel Class Reference

What is EnhancedLabel

EnhancedLabel is a native Win32 DLL (C++ style DLL) which can transform your boring static label control into different kind of useful professional controls. Visually, it divides you Static Label control into 4 parts: Body, Header, ContentLink and LinkBar. There are about 50+ APIs or Library Functions for you to customize these 4 areas, include their position/size, background color, text color/font, highlight style, border style, etc. These function names normally start with SetBodyXXX(), SetHeaderXXX(), SetContentLinkXXX(), or SetLinkBarXXX(). Using these 4 parts, you can now transform your static label control into GradientBar Label, Single Link or Multiple-Links' LinkBar, Button (with different color/styles), or even a Panel Control.

EnhancedLabel is NOT a new Win32 control, COM component, .NET class or MFC/WTL/ATL control. It only subclasses the static label and transforms the static label into more professional and useful control.
To use this library, just place the static label control on your DialogBox/Window as what you normally do, and call the library APIs. All the APIs are very simple and straight forward, therefore you do not need to spend a lot of time to learn it. Most of the time you spent will be adjusting the color of your new static label control to make your application become more professional!

EnhancedLabel was written in C/C++/Win32. You can use it in your native Win32, MFC, ATL, WTL or other Win32 Platform GUI frameworks, as long you can obtain the native handle (HWND) of the static label control on your DialogBox/Window in your source code.

Take a look at the DEMO application.

Tutorial

EnhancedLabel library is just a normal native DLL. You can use it in your pure C/C++ native Win32 application, MFC or even .NET application (of course, you need a C# class wrapper for that).

Below assume that you are developing a C/C++ Windows application.

1. C/C++ Include Files
To use the library , include the EnhancedLabel.h and gdiplus.h (which can be found in Microsoft Platform SDK) files in your C/C++ source code, and link it with the EnhancedLabel.lib and Gdiplus.lib (which can be found in Microsoft Platform SDK) during compilation, then put the EnhancedLabel.dll file (if you link with the DLL library) in your application's directory or any folder that is specified in the system DLL search paths. The DLL is royalty free. With a developer license, you are allowed to distribute the EnhancedLabel.dll along with your product setup package. Read the library license agreement in the license text file.

Sample Code:
#include <windows.h>
#include <gdiplus.h> // GDI+ Include File
using namespace Gdiplus;

#include "EnhancedLabel.h"
using namespace InnoStage::GUI;

2. Initialization of GDI+
We need Gdiplus.lib because EnhancedLabel uses GDI+ technology to render the GUI display. Before calling any EnhancedLabel APIs, you must initialize GDI+ in your application.

Below is the sample code to initialize GDI+ before you can use the library and remember to release it before exiting your application:

Sample Code:
ULONG_PTR m_gdiplusToken;
HINSTANCE HInstance = GetModuleHandle(NULL);
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);

// your application code here ...

// call below at the end of your application
Gdiplus::GdiplusShutdown(m_gdiplusToken);

3. SubClassing your Static Label Control
After you have initialized the GDI+, you are ready to use the library. First. you create a new EnhancedLabel object and subclass the static control by passing the control identifier and its parent window handler. You can call these statements inside the WM_INITDIALOG window message.

Sample Code:
EnhancedLabel *objELabel;
objELabel = new EnhancedLabel(hWnd, LABEL_ID);
if( objELabel == NULL )
{
....
return;
}
if( objELabel->SubClass() == false )
{
return;
}

4. Calling Library Functions
Now, you can call any of the library functions to customize your static label control. There is no sequence dependency between these functions, that is you can call these functions in any order you like.

The library divides a Label control into 4 parts which you can customize:
a. Body,
b. Header,
c. ContentLink, and
d. LinkBar.

Generally, you can customize the size, position, background color/image, text color/font, highlight styles, etc of these parts. These function names normally start with SetBodyXXX(), SetHeaderXXX(), SetContentLinkXXX(), or SetLinkBarXXX(). By showing/hiding the Header, ContentLink, LinkBar, or changing the color or highlight styles of these parts enable you to render different kind of controls you like.

Refer to the Library API Manual for more information of these APIs.

Below shows you how to use EnhancedLabel to render a button by using your existing static label control.

For more working samples, you should see the ready-to-compile DEMO source code that come with the downloaded package (zipped file).

Sample Code:
EnhancedLabel *objELBSimpleButton;
objELBSimpleButton = new EnhancedLabel(hWnd, 55555); // 55555 is Label Control ID
if( objELBSimpleButton == NULL )
{
return;
}
objELBSimpleButton->SubClass();
objELBSimpleButton->SetBodyBorder(EnhancedLabel::BorderSideTop,RGB(0,0,0), 255,
1, 0, 0);
objELBSimpleButton->SetBodyBorder(EnhancedLabel::BorderSideBottom,RGB(0,0,0), 255,
1, 0, 0);
objELBSimpleButton->SetBodyBorder(EnhancedLabel::BorderSideLeft,RGB(0,0,0), 255,
1, 0, 0);
objELBSimpleButton->SetBodyBorder(EnhancedLabel::BorderSideRight,RGB(0,0,0), 255,
1, 0, 0);

RECT rectLabel;
GetClientRect(GetDlgItem(hWnd, 55555), &rectLabel);
objELBSimpleButton->SetHeaderHeight(rectLabel.bottom-rectLabel.top);
objELBSimpleButton->SetHeaderIndent(0,0);
objELBSimpleButton->SetHeaderBackgroundGradient(RGB(115,160,236), RGB(5,55,140), false);

objELBSimpleButton->SetHeaderStandardLeftIndent(0,0);
objELBSimpleButton->SetHeaderStandardLeftTitleFont(L"Tahoma", 10, true, false, false);
objELBSimpleButton->SetHeaderStandardLeftTitle(L"OK", RGB(255,255,255), 1);
objELBSimpleButton->SetHeaderOnClickCommand(3007);

objELBSimpleButton->SetHeaderHighlightStyle(true,EnhancedLabel::HighlightStyleBorderText,
RGB(49,85,153), RGB(255,223,127), 200, 0, 0, 0);

Frequently Asked Questions (FAQ)

Q. What platforms/OS does EnhancedLabel support?
A.
Windows XP/Windows 2003 Server or above. You can use it on other Windows Platforms as long you make sure the system is installed with Gdiplus.dll (GDI+). However, you are not able to get the ClearType rendering as it is supported only on Windows XP and Windows Server 2003 or above.

Q. Is it a new ActiveX Component/MFC/.NET control? Do I need to register it to Windows Registry database?
A.
No. It is just a simple native Win32 DLL implementation. The library DLL file exports the standard C++ functions for you to use. It is not a COM component or control, you do not need to register it to your Windows Registry. Just put the EnhancedLabel.dll file (if you link with the DLL library) in your application's directory or any folder that is specified in the system DLL search paths

Q. What do I need for using this library?
A.
Basically, you just need a Microsoft Visual C++ compiler or its compatible compiler, and Microsoft Platform SDK (which can be downloaded from Microsoft website).

Q. What are inside the downloaded EnhancedLabel package/zipped file?
A.
The following items are inside the package:
a. Static Library.
b. Dynamic Library + EnhancedLabel DLL file.
c. EnhancedLabel API manual.
d. Source Code + Binary Copy of DEMO application.
e. Include Header File.
f. EnhancedLabel License File.

Note that the Static Library and Dynamic Library/DLL are full functional working sets of EnhancedLabel. You can use it in your distribution product as long you have registered it in your application source code.

Q. Is the library easy to use? Do I need to spend a lot of time learning the APIs?
A.
It is extremely easy to use and EnhancedLabel library has only one class and is simple to understand. It comes without any complex class structures. All the APIs/functions accept only simple common C/C++/Win32 data types like int, bool, HBITMAP, COLORREF, etc. You should understand how to use it within one or two hours.

Q. Does the library support Unicode Code?
A.
Yes. Actually the library requires you to use Unicode Code string. All the functions accept Unicode-Code string only. If your source code/application does not use Unicode Code string, you must find a way to convert your ASCII string to Unicode Code before you can use the library.

Q. Does the library support ClearType or Antialiasing?
A.
Yes. ClearType and Antialiasing are supported by default. To turn off the
ClearType feature, you can call EnableClearType(false); to turn off the
Antialiasing, call EnableHighQualitySmoothingMode(false) function.

Q. Will the library slow down my application?
A.
No. Internally, this library just overwrites the WM_PAINT windows message of your static label control. There is no extensive processing inside the library.

Q. What are the memory issues that I need to handle or take care when I am using the library?
A.
No. All the memory issues are handled internally by the EnhancedLabel library. You must only remember to releasing the EnhancedLabel objects memory after finish using it.

Q. What is the error-handling mechanism of this library?
A.
EnhancedLabel employs very simple error-handling mechanism. You only need to check the return boolean value from the library functions. Most of the functions return boolean value - if the function succeeds, the return value is true, if the function fails, the return value is false. The most important one would be the SubClass() function. You should always check the return value of this function. This function determines if you can customize your static label control.

Q. How does the EnhancedLabel libray look like?
A.
The library divides your static label control into 4 parts: Body, Header, ContentLink, and LinkBar. You can hide/show, customize the look and feel and highlight styles of these parts. Using single or combination of these
parts, you can render different style of controls, for examples Customizable Label, Button, GradientBar, Link, LinkBar, and Link Panel.

Q. What are the items/area I can customize/control/change?
A.
Generally, you can control the position, height, background color/image/ size, image scaling, text color/font/size, border color/width, highlight styles of the 4 parts mentioned above.

Q. How can I control or set the height of the Header, ContentLink or LinkBar?
A.
You can call the SetHeaderHeight(), and SetLinkBarHeight() to set the height of the Header and LinkBar, separately. You cannot set the height of ContentLink, it will grow automatically when you add link text to it.

Q. How can I set the visibility of the Header, ContentLink or LinkBar?
A.
Just set the height of the Header and LinkBar to zero - SetHeaderHeight(0) and SetLinkBarHeight(0), if you want to hide them. ContentLink will not show anything if there is no link added.

Q. What are Standard Header and Detailed Header in the Library?
A.
There are 2 type of header styles the library can render. With Standard Header, you can only show a Side Image/Bitmap with a title on the header. Detailed Header gives you one additional item, which is the description
that is added below your header's title.

Q. Does the library provide different kinds of highlight styles?
A.
Yes. It provides up to 9 highlight styles for you to capture/show the mouse movement:
a. HighlightStyleBorderOnly
b. HighlightStyleBackgroundOnly
c. HighlightStyleTextOnly (Not Applicable for Body Part)
d. HighlightStyleBorderBackground
e. HighlightStyleBorderText (Not Applicable for Body Part)
f. HighlightStyleBackgroundText (Not Applicable for Body Part)
g. HighlightStyleLeftBorderOnly
h. HighlightStyleRightBorderOnly
i. HighlightStyleBottomBorderOnly

Q. How can I make the Body Part/Header Part/LinkBar Part to be transparent?
A.
You can set their background color (first and second color) to -1, and set their background bitmap/image to NULL.

Q. What are the limitations of the unregistered copy of EnhancedLabel?
A.
For unregistered copy, the red text 'Unregistered' will be shown on your static label control after using the library for more than 10 minutes. You should register your copy of EnhancedLabel before deploying, distributing or installing your application which based on EnhancedLabel.

Q. What is the license of this library?
A.
It is royalty-free. With a developer license, you are allowed to distribute the EnhancedLabel.dll along with your product setup package. You only need to register once per executable application file (*.exe). Read the library license
agreement in the license text file.

Q. How can I register EnhancedLabel library in my application code?
A.
After you have registered your copy of EnhancedLabel library with us via email or our website, you will receive your ProductKey and AuthID. You only need to call the Register() function to register it. This is a static function, you should only call it once in your application. Note that the ProductKey and AuthID are generated based on your Executable Filename, together with other information you submitted to us. Therefore, you should decide your executable filename before registering with us and do not rename your Executable Filename after you have received your ProductKey and AuthID.

Below is sample code to register EnhancedLabel:

InnoStage::GUI::EnhancedLabel::Register(
L"EnhancedLabel Demo", L"InnoStage.com", L"Demo ONLY",
L"003F12534F5F238A3DD0E6E0", lstrlen(L"003F12534F5F238A3DD0E6E0"),
L"D6939D324EE084", lstrlen(L"D6939D324EE084"));

 

 

List of all members.

Public Member Functions

DLL_EXPORT bool AddContentLink (unsigned int cmdID, HBITMAP bitmap, const TCHAR *text, COLORREF transparent, COLORREF color, COLORREF highlight, COLORREF bghighlight, unsigned int alphablending, bool boldhighlight, bool underlinehighlight, unsigned int indent)
DLL_EXPORT bool AddLink (unsigned int cmdID, const TCHAR *text, const TCHAR *tips, COLORREF color, COLORREF highlight, COLORREF bghighlight, unsigned int alphablending, bool boldhighlight, bool underlinehighlight, unsigned int indent)
DLL_EXPORT bool ClearAllContentLinks (void)
DLL_EXPORT bool ClearAllLinks (void)
DLL_EXPORT void EnableClearType (bool enable)
DLL_EXPORT bool EnableContentLinkNormalMode (bool enable)
DLL_EXPORT void EnableHighQualitySmoothingMode (bool enable)
DLL_EXPORT EnhancedLabel (HWND hWnd, UINT id)
DLL_EXPORT EnhancedLabel (HWND hWnd)
DLL_EXPORT int GetBodyOnClickCommand (void)
DLL_EXPORT int GetHeaderOnClickCommand (void)
DLL_EXPORT HWND GetWindowHandle (void)
DLL_EXPORT bool RemoveContentLink (unsigned int cmdID)
DLL_EXPORT bool RemoveLink (unsigned int cmdID)
DLL_EXPORT bool SetBodyBackgroundGradient (COLORREF first, COLORREF second, bool horizontal)
DLL_EXPORT bool SetBodyBackgroundImage (HBITMAP bitmap, bool scale, bool grayscale)
DLL_EXPORT bool SetBodyBorder (BorderSide borderside, COLORREF color, unsigned int alphablending, unsigned int width, unsigned int indentx, unsigned int indenty)
DLL_EXPORT bool SetBodyHighlightStyle (bool enblehighlight, HighlightStyle style, COLORREF highlight, COLORREF texthighlight, unsigned int alphableding, unsigned int borderwidth, unsigned int offsetx, unsigned int offsety)
DLL_EXPORT bool SetBodyOnClickCommand (int cmdID)
DLL_EXPORT bool SetContentLinkIndent (unsigned int x, unsigned int y)
DLL_EXPORT bool SetContentLinkSideImageSize (unsigned int width, unsigned int height)
DLL_EXPORT bool SetContentLinkTextFont (const TCHAR *fontname, unsigned int fontsize, bool bold, bool italic, bool underline)
DLL_EXPORT bool SetHeaderBackgroundGradient (COLORREF first, COLORREF second, bool horizontal)
DLL_EXPORT bool SetHeaderBackgroundImage (HBITMAP bitmap, bool scale, bool grayscale)
DLL_EXPORT bool SetHeaderBorder (BorderSide borderside, COLORREF color, unsigned int alphablending, unsigned int width, unsigned int indentx, unsigned int indenty)
DLL_EXPORT bool SetHeaderDetailsDescription (const TCHAR *description, COLORREF text, unsigned int alignment)
DLL_EXPORT bool SetHeaderDetailsDescriptionFont (const TCHAR *fontname, unsigned int fontsize, bool bold, bool italic, bool underline)
DLL_EXPORT bool SetHeaderDetailsImage (HBITMAP bitmap, unsigned int width, unsigned int height, COLORREF transparent, bool scale, bool grayscale)
DLL_EXPORT bool SetHeaderDetailsIndent (unsigned int x, unsigned int y)
DLL_EXPORT bool SetHeaderDetailsTitle (const TCHAR *title, COLORREF text, unsigned int alignment)
DLL_EXPORT bool SetHeaderDetailsTitleFont (const TCHAR *fontname, unsigned int fontsize, bool bold, bool italic, bool underline)
DLL_EXPORT bool SetHeaderHeight (unsigned int height)
DLL_EXPORT bool SetHeaderHighlightStyle (bool enblehighlight, HighlightStyle style, COLORREF highlight, COLORREF texthighlight, unsigned int alphableding, unsigned int borderwidth, unsigned int offsetx, unsigned int offsety)
DLL_EXPORT bool SetHeaderIndent (unsigned int x, unsigned int y)
DLL_EXPORT bool SetHeaderOnClickCommand (int cmdID)
DLL_EXPORT bool SetHeaderStandardLeftImage (HBITMAP bitmap, unsigned int width, unsigned int height, COLORREF transparent, bool scale, bool grayscale)
DLL_EXPORT bool SetHeaderStandardLeftIndent (unsigned int x, unsigned int y)
DLL_EXPORT bool SetHeaderStandardLeftTitle (const TCHAR *title, COLORREF text, unsigned int alignment)
DLL_EXPORT bool SetHeaderStandardLeftTitleFont (const TCHAR *fontname, unsigned int fontsize, bool bold, bool italic, bool underline)
DLL_EXPORT bool SetLinkBarBackgroundGradient (COLORREF first, COLORREF second, bool horizontal)
DLL_EXPORT bool SetLinkBarBackgroundImage (HBITMAP bitmap, bool scale, bool grayscale)
DLL_EXPORT bool SetLinkBarBorder (BorderSide borderside, COLORREF color, unsigned int alphablending, unsigned int width, unsigned int indentx, unsigned int indenty)
DLL_EXPORT bool SetLinkBarHeight (unsigned int height)
DLL_EXPORT bool SetLinkBarHighlightStyle (bool enblehighlight, HighlightStyle style, COLORREF highlight, COLORREF texthighlight, unsigned int alphableding, unsigned int borderwidth, unsigned int offsetx, unsigned int offsety)
DLL_EXPORT bool SetLinkBarIndent (unsigned int x, unsigned int y)
DLL_EXPORT bool SetLinkBarTextFont (const TCHAR *fontname, unsigned int fontsize, bool bold, bool italic, bool underline)
DLL_EXPORT bool SetLinkBarTips (bool show, bool ontop, COLORREF text, COLORREF background, unsigned int alphablending)
DLL_EXPORT bool SetLinkBarTipsFont (const TCHAR *fontname, unsigned int fontsize, bool bold, bool italic, bool underline)
DLL_EXPORT bool SetLinkBarVerticalSeparator (bool show, COLORREF color, unsigned int width, unsigned int indent)
DLL_EXPORT bool SubClass (void)
DLL_EXPORT ~EnhancedLabel ()

Static Public Member Functions

static DLL_EXPORT bool Register (const TCHAR *productName, const TCHAR *companyName, const TCHAR *productDescription, const TCHAR *regProductKey, unsigned int regPKLength, const TCHAR *regAuthID, unsigned int regAILength)

Friends

LRESULT CALLBACK _EnhancedLabelProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Member Enumeration Documentation

enum InnoStage::GUI::EnhancedLabel::BorderSide

Enumerator:
BorderSideTop  Top side of the Rectangle
BorderSideBottom  Bottom side of the Rectangle
BorderSideLeft  Left side of the Rectangle
BorderSideRight  Right side of the Rectangle

enum InnoStage::GUI::EnhancedLabel::HighlightStyle

Enumerator:
HighlightStyleBorderOnly  Highlight Border Only
HighlightStyleBackgroundOnly  Highlight Background Only
HighlightStyleTextOnly  Highlight Text Only
HighlightStyleBorderBackground  Highlight Border and Background
HighlightStyleBorderText  Highlight Border and Text
HighlightStyleBackgroundText  Highlight Background and Text
HighlightStyleLeftBorderOnly  Highlight Left Side of Rectangle Only
HighlightStyleRightBorderOnly  Highlight Right Side of Rectangle Only
HighlightStyleBottomBorderOnly  Highlight Bottom Side of Rectangle Only


Constructor & Destructor Documentation

InnoStage::GUI.EnhancedLabel::EnhancedLabel ( HWND  hWnd  ) 

EnhancedLabel Constructor.

Parameters:
hWnd Handle to the Static Label Control to be customized or subclassed.

Returns:
No return value.

InnoStage::GUI.EnhancedLabel::EnhancedLabel ( HWND  hWnd,
UINT  id 
)

EnhancedLabel Constructor.

Parameters:
hWnd Handle to the parent windows of the Static Label Control to be customized or subclassed.
id The identifier of the Static Label Control.

Returns:
No return value.

InnoStage::GUI.EnhancedLabel::~EnhancedLabel (  ) 

EnhancedLabel Destructor.


Member Function Documentation

bool InnoStage::GUI.EnhancedLabel::AddContentLink ( unsigned int  cmdID,
HBITMAP  bitmap,
const TCHAR *  text,
COLORREF  transparent,
COLORREF  color,
COLORREF  highlight,
COLORREF  bghighlight,
unsigned int  alphablending,
bool  boldhighlight,
bool  underlinehighlight,
unsigned int  indent 
)

Add a link to the ContentLink Part and specifies the highlight style for the link. Each individual link can have different highlight style. Links will be shown in the same sequence (from left to right) as they are added (same sequence as this function call).

Parameters:
cmdID Specifies the Command Identifier to trigger the WM_COMMAND window message.
bitmap Handle to an instance of a module whose executable file contains a bitmap resource. The size of the image is controlled by the SetContentLinkSideImageSize() function.
text Specifies the text of the link.
transparent The RGB color in the bitmap to treat as transparent. To generate a COLORREF structure, use the RGB macro.
color Specifies the color of the text.
highlight Specifies the color of the text when it is highlighted (on mouse-over).
bghighlight Specifies the color of the link background when it is highlighted (on mouse-over).
alphablending Specifies the Alpha-Blending value for the background color when it is highlighted.
boldhighlight Specifies bold typeface when it is highlighted (on mouse-over).
underlinehighlight Specifies underline when it is highlighted (on mouse-over).
indent Specifies the extra vertical space between the text of the links.

Returns:
If the Command Identifier already exists, the function returns false.
If the link is added successfully, the function returns true.

bool InnoStage::GUI.EnhancedLabel::AddLink ( unsigned int  cmdID,
const TCHAR *  text,
const TCHAR *  tips,
COLORREF  color,
COLORREF  highlight,
COLORREF  bghighlight,
unsigned int  alphablending,
bool  boldhighlight,
bool  underlinehighlight,
unsigned int  indent 
)

Add a link to the LinkBar Part and specifies the highlight style for the link. Each individual link can have different highlight style. Links will be shown in the same sequence (from left to right) as they are added (same sequence as this function call).

Parameters:
cmdID Specifies the Command Identifier to trigger the WM_COMMAND window message.
text Specifies the text of the link.
tips Specifies the tips of the link. The tips will be shown only if you call SetLinkBarTips() and pass a true value to the first parameter.
color Specifies the color of the text.
highlight Specifies the color of the text when it is highlighted (on mouse-over).
bghighlight Specifies the color of the link background when it is highlighted (on mouse-over).
alphablending Specifies the Alpha-Blending value for the background color when it is highlighted.
boldhighlight Specifies bold typeface when it is highlighted (on mouse-over).
underlinehighlight Specifies underline when it is highlighted (on mouse-over).
indent Specifies the extra space between the text of the links.

Returns:
If the Command Identifier already exists, the function returns false.
If the link is added successfully, the function returns true.

bool InnoStage::GUI.EnhancedLabel::ClearAllContentLinks ( void   ) 

Clear/Remove all the links information on the ContentLink Part.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::ClearAllLinks ( void   ) 

Clear/Remove all the links information on the LinkBar Part.

Returns:
The return value is always true.

void InnoStage::GUI.EnhancedLabel::EnableClearType ( bool  enable  ) 

Enable/Disable the ClearType text drawing. See EnableHighQualitySmoothingMode() function.

Parameters:
enable Specifies if to enable(true) or disable(false) ClearType text drawing.

Returns:
No return value.

bool InnoStage::GUI.EnhancedLabel::EnableContentLinkNormalMode ( bool  enable  ) 

This function is used to temporarily disable the Anti-aliasing drawing and ClearType text drawing when paiting the ContentLink Part. This function is useful in that you can use Anti-aliasing and ClearType drawing for other parts but disable them when painting the ContentLink so that the links inside the ContentLink will not look blur, especially when you use small font size for your ContentLink Part. See EnableHighQualitySmoothingMode() and EnableClearType() functions.

Parameters:
enable Set to true if you do not want to use ClearType and Anti-aliasing drawing for ContentLink.

Returns:
The return value is always true.

void InnoStage::GUI.EnhancedLabel::EnableHighQualitySmoothingMode ( bool  enable  ) 

Enable/Disable the Antialiasing drawing. See EnableClearType() function.

Parameters:
enable Specifies if to enable(true) or disable(false) Antialiasing drawing.

Returns:
No return value.

int InnoStage::GUI.EnhancedLabel::GetBodyOnClickCommand ( void   ) 

Retrieve the Command Identifier (used by Mouse On Click) of the Body Part.

Returns:
If the function succeeds, it returns the Command Identifier of the Body Part.
If the function fails, the return value is -1, indicating an invalid Command Identifier or a nonexistent Command Identifier.

int InnoStage::GUI.EnhancedLabel::GetHeaderOnClickCommand ( void   ) 

Retrieve the Command Identifier (used by Mouse On Click) of the Header Part.

Returns:
If the function succeeds, it returns the Command Identifier of the Header Part.
If the function fails, the return value is -1, indicating an invalid Command Identifier or a nonexistent Command Identifier.

HWND InnoStage::GUI.EnhancedLabel::GetWindowHandle ( void   ) 

Retrieve the window handle of the specified Static Label Control.

Returns:
If the function succeeds, the return value is the window handle of the specified Static Label Control.
If the function fails, the return value is NULL, indicating an invalid Static Label handle or a nonexistent Static Label Control.

bool InnoStage::GUI.EnhancedLabel::Register ( const TCHAR *  productName,
const TCHAR *  companyName,
const TCHAR *  productDescription,
const TCHAR *  regProductKey,
unsigned int  regPKLength,
const TCHAR *  regAuthID,
unsigned int  regAILength 
) [static]

Register the EnhancedLabel library with the ProductKey and AuthID. ProductKey and AuthID are generated based on the information passed to this function.

Parameters:
productName Name of your product.
companyName Name of your company.
productDescription Short text used to describe your product.
regProductKey Product Key used to register your product for using EnhancedLabel library
regPKLength Size/length of your Product Key, in term of Unicode Character.
regAuthID AuthID used to register your product for using EnhancedLabel library
regAILength Size/length of your AuthID, in term of Unicode Character.

Returns:
A true boolean value is returned if the values are accepted, false otherwise. Note, the return value does not reflect the validity of your product key and AuthID.

bool InnoStage::GUI.EnhancedLabel::RemoveContentLink ( unsigned int  cmdID  ) 

Remove a link from the ContentLink Part by the link Command Identifier.

Parameters:
cmdID Specifies the Command Identifier of the link to be removed.

Returns:
If the link is removed successfully, the function returns true.
If the link is not found, the function returns false.

bool InnoStage::GUI.EnhancedLabel::RemoveLink ( unsigned int  cmdID  ) 

Remove a link from the LinkBar Part by the link Command Identifier.

Parameters:
cmdID Specifies the Command Identifier of the link to be removed.

Returns:
If the link is removed successfully, the function returns true.
If the link is not found, the function returns false.

bool InnoStage::GUI.EnhancedLabel::SetBodyBackgroundGradient ( COLORREF  first,
COLORREF  second,
bool  horizontal 
)

Set the background color of the Body Part. Calling this function will overwrite the SetBodyBackgroundImage() function call. If the first and second color are the same, there is no gradient effect for background.

Parameters:
first Specifies the first color for the background. To generate a COLORREF structure, use the RGB macro.
second Specifies the second color for the background. To generate a COLORREF structure, use the RGB macro.
horizontal Set to true if to use a horizontal gradient to fill the background with color that changes gradually as you move from the left edge of the background to the right edge.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetBodyBackgroundImage ( HBITMAP  bitmap,
bool  scale,
bool  grayscale 
)

Set the background bitmap/image of the Body Part. Calling this function will overwrite the SetBodyBackgroundGradient() function call, that is Body Part will always be painted with the bitmap/ image, even the bitmap/image is NULL.

Parameters:
bitmap Handle to an instance of a module whose executable file contains a bitmap resource. It is used to paint the Body Part background.
scale Set to true if you want to scale the bitmap/image to fill up the Body Part.
grayscale Set to true if you want to convert the bitmap/image to grey color.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetBodyBorder ( BorderSide  borderside,
COLORREF  color,
unsigned int  alphablending,
unsigned int  width,
unsigned int  indentx,
unsigned int  indenty 
)

Set the border color and width of the Body Part.

Parameters:
borderside Integer that specifies the side of the body. This value must be an element of the BorderSide enumeration.
color Specifies the color of your border line. To generate a COLORREF structure, use the RGB macro.
alphablending NOT USED.
width Specifies the width of your border line.
indentx Specifies the left (if it is a horizontal border) or top (if it is a vertical border) indent of your border line.
indenty Specifies the right (if it is a horizontal border) or bottom (if it is a vertical border) indent of your border line.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetBodyHighlightStyle ( bool  enblehighlight,
HighlightStyle  style,
COLORREF  highlight,
COLORREF  texthighlight,
unsigned int  alphableding,
unsigned int  borderwidth,
unsigned int  offsetx,
unsigned int  offsety 
)

Specifies the mouse-over highlight style for Body Part. There are total 6 highlight styles available for Body Part.

Parameters:
enblehighlight Specifies if to enable(true) or disable(false) Highlight effect when mouse is over. Note that if this value is set to false, there will be no Highlight effect for the Body Part, but other parameters will still be set or changed by EnhancedLibrary internally.
style Integer that specifies the Highlight style. This value must be an element of the HighlightStyle enumeration. For Body Part Highlight, HighlightStyleTextOnly, HighlightStyleBorderText, or HighlightStyleBackgroundText has no highlight effect.
highlight Specifies the color of the background or border when the Body Part is highlighted (on mouse-over).
texthighlight NOT USED.
alphableding Specifies the Alpha-Blending value for the background color.
borderwidth Specifies the border width when the Body Part is highlighted. This parameter is used only when the Highlight style is either HighlightStyleBorderOnly, HighlightStyleBorderBackground, HighlightStyleLeftBorderOnly, HighlightStyleRightBorderOnly, or HighlightStyleBottomBorderOnly.
offsetx NOT USED.
offsety NOT USED.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetBodyOnClickCommand ( int  cmdID  ) 

Specifies the Command Identifier to be sent to a window via the WM_COMMAND message when the mouse button is clicked on the Body Part. This Command Identifier will be the low-order word of the WPARAM parameter(WM_COMMAND message). To turn off the WM_COMMAND message sending, set the cmdID to -1.

Parameters:
cmdID Specifier the Command Identifier to be sent to a window via the WM_COMMAND message when the mouse button is clicked.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetContentLinkIndent ( unsigned int  x,
unsigned int  y 
)

Set the position of the ContentLink Part.

Parameters:
x Specifies the x-coordinate of the upper-left corner of the rendered ContentLink.
y Specifies the y-coordinate of the upper-top corner of the rendered ContentLink.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetContentLinkSideImageSize ( unsigned int  width,
unsigned int  height 
)

Set the size of the image to be shown on the left-hand size of very link text on the ContentLink Part. You can use this function to adjust the space between the image and the text of link.

Parameters:
width Specifies the width of the image.
height Specifies the height of the image.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetContentLinkTextFont ( const TCHAR *  fontname,
unsigned int  fontsize,
bool  bold,
bool  italic,
bool  underline 
)

Set the font and font styles used to draw the text inside the ContentLink Part.

Parameters:
fontname Specifies the font name.
fontsize Specifies the em size of the font measured in the Pixel unit.
bold Specifies bold typeface. Bold is a heavier weight or thickness.
italic Specifies italic typeface, which produces a noticeable slant to the vertical stems of the characters.
underline Specifies underline, which displays a line underneath the baseline of the characters.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderBackgroundGradient ( COLORREF  first,
COLORREF  second,
bool  horizontal 
)

Set the background color of the Header Part. Calling this function will overwrite the SetHeaderBackgroundImage() function call. If the first and second color are the same, there is no gradient effect for background.

Parameters:
first First color for the background. To generate a COLORREF structure, use the RGB macro.
second Second color for the background. To generate a COLORREF structure, use the RGB macro.
horizontal Set to true if to use a horizontal gradient to fill the background with color that changes gradually as you move from the left edge of the background to the right edge.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderBackgroundImage ( HBITMAP  bitmap,
bool  scale,
bool  grayscale 
)

Set the background bitmap/image of the Header Part. Calling this function will overwrite the SetHeaderBackgroundGradient() function call, that is Header Part will always be painted with the bitmap/ image, even the bitmap/image is NULL.

Parameters:
bitmap Handle to an instance of a module whose executable file contains a bitmap resource. It is used to paint the Body background.
scale Set to true if you want to scale the bitmap/image to fill up the Header Part.
grayscale Set to true if you want to convert the bitmap/image to grey color.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderBorder ( BorderSide  borderside,
COLORREF  color,
unsigned int  alphablending,
unsigned int  width,
unsigned int  indentx,
unsigned int  indenty 
)

Set the border color and width of the Header Part.

Parameters:
borderside Integer that specifies the side of the Header Part. This value must be an element of the BorderSide enumeration.
color Specifies the color of the border. To generate a COLORREF structure, use the RGB macro.
alphablending NOT USED.
width Specifies the width of the border line.
indentx Specifies the left (if it is a horizontal border) or top (if it is a vertical border) indent of your border line.
indenty Specifies the right (if it is a horizontal border) or bottom (if it is a vertical border) indent of your border line.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderDetailsDescription ( const TCHAR *  description,
COLORREF  text,
unsigned int  alignment 
)

Specifies the Detailed Header's description and its text color and alignment.

Parameters:
description Specifies the text for the description.
text Specifies the color of the text.
alignment Specifies the alignment of the description. 0 - Left Alignment, 1 - Center Alignment, 2 - Right Alignment

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderDetailsDescriptionFont ( const TCHAR *  fontname,
unsigned int  fontsize,
bool  bold,
bool  italic,
bool  underline 
)

Set the font and font styles used to draw the text of the description inside the Detailed Header Part.

Parameters:
fontname Specifies the font name.
fontsize Specifies the em size of the font measured in the Pixel unit.
bold Specifies bold typeface. Bold is a heavier weight or thickness.
italic Specifies italic typeface, which produces a noticeable slant to the vertical stems of the characters.
underline Specifies underline, which displays a line underneath the baseline of the characters.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderDetailsImage ( HBITMAP  bitmap,
unsigned int  width,
unsigned int  height,
COLORREF  transparent,
bool  scale,
bool  grayscale 
)

Specifies the Side Bitmap/Image of the Detailed Header. This image is shown on the top left side of the Detailed Header. To remove/hide the image previously set by this function call, just set the image to NULL.

Parameters:
bitmap Handle to an instance of a module whose executable file contains a bitmap resource.
width Specifies the width of the rectangle used to paint the image.
height Specifies the height of the rectangle used to paint the image.
transparent Specifies the transparent color for the image.
scale Set to true if you want to scale the bitmap/image to fill up the rectangle used to paint the image.
grayscale Set to true if you want to convert the bitmap/image to grey color.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderDetailsIndent ( unsigned int  x,
unsigned int  y 
)

Specifies the Detailed Header starting point/position for drawing inside the Header Part. This starting point is relative to the Header (see SetHeaderIndent()), not the Static Label Control.

Parameters:
x Specifies the x-coordinate of the upper-left corner of the rendered Detailed Header.
y Specifies the y-coordinate of the upper-top corner of the rendered Detailed Header.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderDetailsTitle ( const TCHAR *  title,
COLORREF  text,
unsigned int  alignment 
)

Specifies the Detailed Header's title and its text color and alignment.

Parameters:
title Specifies the text for the title.
text Specifies the color of the text.
alignment Specifies the alignment of the title. 0 - Left Alignment, 1 - Center Alignment, 2 - Right Alignment

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderDetailsTitleFont ( const TCHAR *  fontname,
unsigned int  fontsize,
bool  bold,
bool  italic,
bool  underline 
)

Set the font and font styles used to draw the text of the title inside the Detailed Header Part.

Parameters:
fontname Specifies the font name.
fontsize Specifies the em size of the font measured in the Pixel unit.
bold Specifies bold typeface. Bold is a heavier weight or thickness.
italic Specifies italic typeface, which produces a noticeable slant to the vertical stems of the characters.
underline Specifies underline, which displays a line underneath the baseline of the characters.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderHeight ( unsigned int  height  ) 

Set the height of the Header Part.

Parameters:
height Specifies the height of the Header Part. Set to 0 if want to hide the Header Part.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderHighlightStyle ( bool  enblehighlight,
HighlightStyle  style,
COLORREF  highlight,
COLORREF  texthighlight,
unsigned int  alphableding,
unsigned int  borderwidth,
unsigned int  offsetx,
unsigned int  offsety 
)

Specifies the mouse-over highlight style for Header Part. There are total 9 highlight styles available for Header Part.

Parameters:
enblehighlight Specifies if to enable(true) or disable(false) Highlight effect when mouse is over. Note that if this value is set to false, there will be no Highlight effect for the Header Part, but other parameters will still be set or changed by EnhancedLibrary internally.
style Integer that specifies the Highlight style. This value must be an element of the HighlightStyle enumeration.
highlight Specifies the color of the background or border when the Header Part is highlighted (on mouse-over).
texthighlight Specifies the color of the text when the Header Part is highlighted (on mouse-over).
alphableding Specifies the Alpha-Blending value for the background color.
borderwidth Specifies the border width when the Header Part is highlighted. This parameter is used only when the Highlight style is either HighlightStyleBorderOnly, HighlightStyleBorderBackground, HighlightStyleLeftBorderOnly, HighlightStyleRightBorderOnly, or HighlightStyleBottomBorderOnly.
offsetx Specifies the X offset relative to current position when the Header Part is highlighted (on mouse-over).
offsety Specifies the Y offset relative to current position when the Header Part is highlighted (on mouse-over).

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderIndent ( unsigned int  x,
unsigned int  y 
)

Set the position of the Header Part.

Parameters:
x Specifies the x-coordinate of the upper-left corner of the rendered Header.
y Specifies the y-coordinate of the upper-top corner of the rendered Header.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderOnClickCommand ( int  cmdID  ) 

Specifies the Command Identifier to be sent to a window via the WM_COMMAND message when the mouse button is clicked on the Header Part. This Command Identifier will be the low-order word of the WPARAM parameter(WM_COMMAND message). To turn off the WM_COMMAND message sending, set the cmdID to -1.

Parameters:
cmdID Specifier the Command Identifier to be sent to a window via the WM_COMMAND message when the mouse button is clicked.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderStandardLeftImage ( HBITMAP  bitmap,
unsigned int  width,
unsigned int  height,
COLORREF  transparent,
bool  scale,
bool  grayscale 
)

Specifies the Side Bitmap/Image of the Standard Header. This image is shown on the top left side of the Standard Header. To remove/hide the image previously set by this function call, just set the image to NULL.

Parameters:
bitmap Handle to an instance of a module whose executable file contains a bitmap resource.
width Specifies the width of the rectangle used to paint the image.
height Specifies the height of the rectangle used to paint the image.
transparent Specifies the transparent color for the image.
scale Set to true if you want to scale the bitmap/image to fill up the rectangle used to paint the image.
grayscale Set to true if you want to convert the bitmap/image to grey color.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderStandardLeftIndent ( unsigned int  x,
unsigned int  y 
)

Specifies the Standard Header starting point/position for drawing inside the Header Part. This starting point is relative to the Header (see SetHeaderIndent()), not the Static Label Control.

Parameters:
x Specifies the x-coordinate of the upper-left corner of the rendered Standard Header.
y Specifies the y-coordinate of the upper-top corner of the rendered Standard Header.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderStandardLeftTitle ( const TCHAR *  title,
COLORREF  text,
unsigned int  alignment 
)

Specifies the Standard Header's title and its text color and alignment.

Parameters:
title Specifies the text for the title.
text Specifies the color of the text.
alignment Specifies the alignment of the title. 0 - Left Alignment, 1 - Center Alignment, 2 - Right Alignment

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetHeaderStandardLeftTitleFont ( const TCHAR *  fontname,
unsigned int  fontsize,
bool  bold,
bool  italic,
bool  underline 
)

Set the font and font styles used to draw the text of the title inside the Standard Header Part.

Parameters:
fontname Specifies the font name.
fontsize Specifies the em size of the font measured in the Pixel unit.
bold Specifies bold typeface. Bold is a heavier weight or thickness.
italic Specifies italic typeface, which produces a noticeable slant to the vertical stems of the characters.
underline Specifies underline, which displays a line underneath the baseline of the characters.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetLinkBarBackgroundGradient ( COLORREF  first,
COLORREF  second,
bool  horizontal 
)

Set the background color of the LinkBar Part. Calling this function will overwrite the SetLinkBarBackgroundImage() function call. If the first and second color are the same, there is no gradient effect for background.

Parameters:
first First color for the background. To generate a COLORREF structure, use the RGB macro.
second Second color for the background. To generate a COLORREF structure, use the RGB macro.
horizontal Set to true if to use a horizontal gradient to fill the background with color that changes gradually as you move from the left edge of the background to the right edge.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetLinkBarBackgroundImage ( HBITMAP  bitmap,
bool  scale,
bool  grayscale 
)

Set the background bitmap/image of the LinkBar Part. Calling this function will overwrite the SetLinkBarBackgroundGradient() function call, that is LinkBar Part will always be painted with the bitmap/image, even the bitmap/image is NULL.

Parameters:
bitmap Handle to an instance of a module whose executable file contains a bitmap resource. It is used to paint the LinkBar background.
scale Set to true if you want to scale the bitmap/image to fill up the LinkBar Part.
grayscale Set to true if you want to convert the bitmap/image to grey color.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetLinkBarBorder ( BorderSide  borderside,
COLORREF  color,
unsigned int  alphablending,
unsigned int  width,
unsigned int  indentx,
unsigned int  indenty 
)

Set the border of the LinkBar Part.

Parameters:
borderside Border Side ...
color Specifies the color of your border line. To generate a COLORREF structure, use the RGB macro.
alphablending NOT USED.
width Width of your border line.
indentx Specifies the left (if it is a horizontal border) or top (if it is a vertical border) indent of your border line.
indenty Specifies the right (if it is a horizontal border) or bottom (if it is a vertical border) indent of your border line.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetLinkBarHeight ( unsigned int  height  ) 

Set the height of the LinkBar Part.

Parameters:
height Height of the LinkBar Part. Set to 0 if want to hide the LinkBar Part.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetLinkBarHighlightStyle ( bool  enblehighlight,
HighlightStyle  style,
COLORREF  highlight,
COLORREF  texthighlight,
unsigned int  alphableding,
unsigned int  borderwidth,
unsigned int  offsetx,
unsigned int  offsety 
)

Specifies the mouse-over highlight style for LinkBar Part. There are total 9 highlight styles available for LinkBar Part.

Parameters:
enblehighlight Specifies if to enable(true) or disable(false) Highlight effect when mouse is over. Note that if this value is set to false, there will be no Highlight effect for the Body Part, but other parameters will still be set or changed by EnhancedLibrary internally.
style Integer that specifies the Highlight style. This value must be an element of the HighlightStyle enumeration.
highlight Specifies the color of the background or border when the LinkBar Part is highlighted (on mouse-over).
texthighlight Specifies the color of the text when the LinkBar Part is highlighted (on mouse-over).
alphableding Specifies the Alpha-Blending value for the background color.
borderwidth Specifies the border width when the LinkBar Part is highlighted. This parameter is used only when the Highlight style is either HighlightStyleBorderOnly, HighlightStyleBorderBackground, HighlightStyleLeftBorderOnly, HighlightStyleRightBorderOnly, or HighlightStyleBottomBorderOnly.
offsetx Specifies the X offset relative to current position when the LinkBar Part is highlighted (on mouse-over).
offsety Specifies the Y offset relative to current position when the LinkBar Part is highlighted (on mouse-over).

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetLinkBarIndent ( unsigned int  x,
unsigned int  y 
)

Set the position of the LinkBar Part.

Parameters:
x Specifies the x-coordinate of the upper-left corner of the rendered LinkBar.
y Specifies the y-coordinate of the upper-left corner of the rendered LinkBar.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetLinkBarTextFont ( const TCHAR *  fontname,
unsigned int  fontsize,
bool  bold,
bool  italic,
bool  underline 
)

Set the font and font styles used to draw the text inside the LinkBar Part.

Parameters:
fontname Specifies the font name.
fontsize Specifies the em size of the font measured in the Pixel unit.
bold Specifies bold typeface. Bold is a heavier weight or thickness.
italic Specifies italic typeface, which produces a noticeable slant to the vertical stems of the characters.
underline Specifies underline, which displays a line underneath the baseline of the characters.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetLinkBarTips ( bool  show,
bool  ontop,
COLORREF  text,
COLORREF  background,
unsigned int  alphablending 
)

Specifies if to show the tips bar when mouse is over the links on the LinkBar Part, and the styles (text color, background, Alpha-Blending) of the tips bar.

Parameters:
show Specifies to show (true) or hide (false) the tips bar when mouse is over the links on the LinkBar Part.
ontop Specifies to show (true) the tips bar on top of the LinkBar Part.
text Specifies the color of text. To generate a COLORREF structure, use the RGB macro.
background Specifies the color of background of tips bar. To generate a COLORREF structure, use the RGB macro.
alphablending Specifies the Alpha-Blending value for the background color.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetLinkBarTipsFont ( const TCHAR *  fontname,
unsigned int  fontsize,
bool  bold,
bool  italic,
bool  underline 
)

Set the font and font styles used to draw the text of the tips for LinkBar Part.

Parameters:
fontname Specifies the font name.
fontsize Specifies the em size of the font measured in the Pixel unit.
bold Specifies bold typeface. Bold is a heavier weight or thickness.
italic Specifies italic typeface, which produces a noticeable slant to the vertical stems of the characters.
underline Specifies underline, which displays a line underneath the baseline of the characters.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SetLinkBarVerticalSeparator ( bool  show,
COLORREF  color,
unsigned int  width,
unsigned int  indent 
)

Specifies if to show a vertical bar between two Link Texts on the LinkBar Part.

Parameters:
show Specifies to show (true) or hide (false) the vertical bar.
color Specifies the color of the vertical bar.
width Specifies the width of the vertical bar.
indent Specifies the top and bottom indent of the vertical bar.

Returns:
The return value is always true.

bool InnoStage::GUI.EnhancedLabel::SubClass ( void   ) 

Subclass the Static Label Control. You must call this once ONLY for every Static Label Control you want to subclass. If this function fails, you cannot perform any customization on your Static Label Control.

Returns:
If the function succeeds, it returns true.
If the function fails, it returns false.


Friends And Related Function Documentation

LRESULT CALLBACK _EnhancedLabelProc ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
) [friend]

DO NOT use this function. It is used internally only.