How can I check if vertical scrollbar is visible in the tree vee?
You have to p / p to get the style of TreeView.
private const int GWL_STYLE = -16; Private Contact Int WS_VSCROLL = 0x00200000; [DllImport ("user32.dll", exact spelling = false, charset = charset.auto)] Private static extern int GetWindowLong (IntPtr hWnd, int nIndex); Bool VScrollVisible () {int style = GetWindowLong (myTreeView.Handle, GWL_STYLE); Return ((style and WS_VSCROLL)! = 0); }
No comments:
Post a Comment