I tried doing that, but the code crashes, if I don't call GetDlgItem, each time in a different function. I think the object is somehow changed during runtime.

I'm using ListCtrl object, not ListView. In your code you gave me, perhaps the problem lies there?