I am working with a ReBar from Visual Basic and found a peculiarity with wID field of the REBARBANDINFO structure. wID is defined as UINT, which in VB is a Long (32-bit signed) integer. In order to ensure a unique wID value, I set it to hwndChild (hWnd of band being added). Adding a band this way succeeds, but querying the ReBar for wID fails. I had to set wID = hwndChild / 100 to get it to work. Anyone know why this behaves like this? What would you suggest I use for unique wID values?
Thanks in advance.
Thanks in advance.