开发者

How to determine if a cell is in the view port of a Virtual treeview?

How to determine if a cell is in the view port of a Virt开发者_运维知识库ual treeview? Thanks.


Use the control's GetDisplayRect method to find the coordinates of the node you're interested in. Specify the column, or -1 for the entire row. For invisible or filtered-out nodes, it will return Rect(0, 0, 0, 0). Then check whether the returned rectangle is within the control's client area (ClientRect). You can use IntersectRect for that part.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜