|
|
|
LastDisplayColumn |
Returns the index of the last displayed column.
C
int WINAPI SftTree_GetLastDisplayColumn(HWND hwndCtl); int WINAPI SftTreeSplit_GetLastDisplayColumn(HWND hwndCtl, BOOL fLeft);
C++
int CSftTree::GetLastDisplayColumn() const; int CSftTreeSplit::GetLastDisplayColumn(BOOL fLeft = TRUE) const;
Parameters
hwndCtl
The window handle of the tree control.
fLeft
Set to TRUE to retrieve the column number of the last displayed column on the left side of a split tree control (the portion of the tree control containing the hierarchy). If FALSE is specified, the column number of the last displayed column on the right side is returned.
Returns
GetLastDisplayColumn returns the zero-based display column number of the last displayed column.
Comments
The GetLastDisplayColumn function returns the index of the last displayed column.
The last column with a width greater than 0 (see SFTTREE_COLUMN_EX) is considered the last displayed column. It is not necessarily displayed or visible if horizontal scrolling is in effect. A column can be made visible using MakeCellVisible or MakeColumnVisible.
The first displayed column can be determined using GetFirstDisplayColumn.
While most other functions use real column numbers, GetLastDisplayColumn returns the display column number of the last displayed column. The display column number can be translated to a real column number using GetRealColumn.
See Also C/C++ API | Categories | Notifications