Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Rebar Band Info Problem

Rebar Band Info Problem

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dan Neilsen
    wrote on last edited by
    #1

    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.

    D 1 Reply Last reply
    0
    • D Dan Neilsen

      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.

      D Offline
      D Offline
      Dan Neilsen
      wrote on last edited by
      #2

      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); ... }

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups