Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wID in REBARBANDINFO of ReBar control

Status
Not open for further replies.

Hexonx

Programmer
Jan 10, 2001
102
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top