Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

Get bounding rectangle for treeitem including icon

$
0
0

Hi,

I have a requirement of getting bounding rectangle for a treeitem in a treeview. The treeview control used is a VB6 treeview (TreeView20WndClass).

I came across TVM_GETITEMRECT. But, it says that if wParam is true, it will get rectangle only for the text part and if it is false, it will get rectangle for the entire line that the item occupies in the tree-view control.

But, I want to get the rectangle the region including both text part and icon. I am unable to find a way for this.

Or is it possible to get the rectangle for the icon?

Any help is highly appreciated.

Regards,

kvk1985


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>