xap_Win32LabelledSeparator.h File Reference

Go to the source code of this file.


bool XAP_Win32LabelledSeparator_RegisterClass (XAP_Win32App *app)

Function Documentation

bool XAP_Win32LabelledSeparator_RegisterClass ( XAP_Win32App app  ) 

Register the labelled separator control class with Windows. This function must be called before the first labelled separator control is created.

A labelled separator control is like a static control with a line extending at the end of the text portion. The labelled separator control adapt the separator length to the text width. Thus, localized label can be immediately followed by the separator line.

A labelled separator control can be created in a resource file by a statement like the following:

    CONTROL    "Actual label",IDC_OF_CONTROL,"AbiLabelledSeparator",0x0,7,17,116,8

The last four numbers are the usual x, y, width and height parameters in windows dialog coordinates.

app the application object
an indication of the class registration success

References XAP_Win32App::getInstance(), s_LabelledSeparatorWndClassName, s_pfnWndProc, and UT_ASSERT.

Referenced by XAP_Win32Dialog_ListDocuments::runModal(), XAP_Win32Dialog_History::runModal(), XAP_Win32Dialog_DocComparison::runModal(), AP_Win32Dialog_Paragraph::runModal(), AP_Win32Dialog_PageNumbers::runModal(), AP_Win32Dialog_MarkRevisions::runModal(), AP_Win32Dialog_ListRevisions::runModal(), AP_Win32Dialog_FormatFootnotes::runModal(), and AP_Win32Dialog_Break::runModal().