What I'm ultimately attempting to do is determine if a box is checked in an a tree view. I was using something to the effect of
But that doesn't work if it has any other properties, like children items because it has flags determining weather it's expanded and so on. So how can I just compare "bits 12-15" as that's what MSDN says determines the state image.Code:if (tvi.state == INDEXTOSTATEIMAGEMASK(2))




Reply With Quote