Rebar Band Info Problem
-
Hi All, I am having issues using GetBandInfo from a rebar control. I am attempting to get the rebar band info for each of the bands in a webbrowser2 control. Here is what I have
for ( UINT nBand = 0; nBand < m_Rebar->GetReBarCtrl().GetBandCount(); nBand++ ) { REBARBANDINFO rbbi; rbbi.cbSize = sizeof( rbbi ); rbbi.fMask = RBBIM_STYLE | RBBIM_CHILD; m_Rebar->GetReBarCtrl().GetBandInfo(nBand, &rbbi); }
GetBandInfo() is returning a 0 value which means it is failing for some reason but I am cant seem to determine why. -
Hi All, I am having issues using GetBandInfo from a rebar control. I am attempting to get the rebar band info for each of the bands in a webbrowser2 control. Here is what I have
for ( UINT nBand = 0; nBand < m_Rebar->GetReBarCtrl().GetBandCount(); nBand++ ) { REBARBANDINFO rbbi; rbbi.cbSize = sizeof( rbbi ); rbbi.fMask = RBBIM_STYLE | RBBIM_CHILD; m_Rebar->GetReBarCtrl().GetBandInfo(nBand, &rbbi); }
GetBandInfo() is returning a 0 value which means it is failing for some reason but I am cant seem to determine why.Note that this will hide each of the bands.
for ( UINT nBand = 0; nBand < m_Rebar->GetReBarCtrl().GetBandCount(); nBand++ ) { ... m_Rebar->GetReBarCtrl().ShowBand(nBand, false); ... }