Gets the current attributes of the cell rulers.
#include "ltivw.h"
L_LTIVW_API L_INT L_DispContainerSetRulerAttributes(hCellWnd, pAttributes);
A handle to the window that represent the cell which the function effect will be implemented on.
Pointer to the RULERATTRIBS structure that contains the cell properties to set.
| Value | Meaning |
|---|---|
| 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.
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;}