#include "ltivw.h"
L_LTIVW_API L_INT L_DispContainerSetRulerAttributes(hCellWnd, pAttributes);
L_HWND hCellWnd; |
handle to the cell window |
LPRULERATTRIBS pAttributes; |
pointer to a ruler attribute structure |
Gets the current attributes of the cell rulers.
Parameter |
Description |
hCellWnd | A handle to the window that represent the cell which the function effect will be implemented on. |
pAttributes | Pointer to the RULERATTRIBS structure that contains the cell properties to set. |
SUCCESS | The function was successful. |
1 | An error occurred. Refer to Return Codes. |
Before calling L_DispContainerSetRulerAttributes apply the following:
To get the current properties set for a cell, call L_DispContainerGetRulerAttributes.
For more information on the actual properties that can be set, refer to the RULERATTRIBS structure.
Required DLLs and Libraries
LTIVW For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
This function changes the look of the cell ruler.
L_INT L_DispContainerSetRulerAttributeExample(HWND hCellWnd)
{
RULERATTRIBS RulerAttributes = {0};
RulerAttributes.uFlags = RULERATTRIBS_ALL;
RulerAttributes.uStructSize = sizeof(RULERATTRIBS);
L_INT nRet = L_DispContainerGetRulerAttributes(hCellWnd, &RulerAttributes);
RulerAttributes.bShowMeasurement = TRUE;
nRet = L_DispContainerSetRulerAttributes(hCellWnd, &RulerAttributes);
return nRet;
}