|
|
|
RowInfo |
Defines an item's row header attributes.
C
BOOL WINAPI SftTree_GetRowInfo(HWND hwndCtl, LPSFTTREE_ROWINFOPARM lpRowParm); BOOL WINAPI SftTree_SetRowInfo(HWND hwndCtl, LPCSFTTREE_ROWINFOPARM lpRowParm); BOOL WINAPI SftTreeSplit_GetRowInfo(HWND hwndCtl, LPSFTTREE_ROWINFOPARM lpRowParm); BOOL WINAPI SftTreeSplit_SetRowInfo(HWND hwndCtl, LPCSFTTREE_ROWINFOPARM lpRowParm);
C++
BOOL CSftTree::GetRowInfo(LPSFTTREE_ROWINFOPARM lpRowParm) const; BOOL CSftTree::SetRowInfo(LPCSFTTREE_ROWINFOPARM lpRowParm); BOOL CSftTreeSplit::GetRowInfo(LPSFTTREE_ROWINFOPARM lpRowParm) const; BOOL CSftTreeSplit::SetRowInfo(LPCSFTTREE_ROWINFOPARM lpRowParm);
Parameters
hwndCtl
The window handle of the tree control.
lpRowParm
A pointer to a SFTTREE_ROWINFOPARM structure where row information is to be retrieved (GetRowInfo) or new row information for the specified item (SetRowInfo).
Returns
The return value is TRUE if the function is successful, FALSE if an error occurred.
Comments
The GetRowInfo and SetRowInfo functions define an item's row header attributes.
To modify a row header's attributes, the GetRowInfo function is used to retrieve its current attributes. The SFTTREE_ROW structure, part of the SFTTREE_ROWINFOPARM structure, can then be modified, setting the desired attributes. Finally, the row header is updated by a call to the SetRowInfo function.
Row header text can be retrieved using GetRowText and modified using SetRowText.
Row headers are made visible using SetShowRowHeader.
In a tree control using a virtual data source, SetRowInfo can only be used to register a row header picture size.
See Also C/C++ API | Categories | Notifications