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. Mobile Development
  3. Mobile
  4. Tool Bars Problem

Tool Bars Problem

Scheduled Pinned Locked Moved Mobile
help
2 Posts 2 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.
  • R Offline
    R Offline
    Rassul Yunussov
    wrote on last edited by
    #1

    I've got some problem with it. I try to make 2 toolbars with rebars, and when i show them all - everything is OK, but when i try to hide one of them - another toolbar doesn't repaint it self fully (just buttons that it has), and doesnt get the full avaluable area. Here how i make them:

    if (!m_wndToolBar.CreateEx(this) ||
    !m_wndToolBar.LoadToolBar(IDR_GPS_PANEL))
    {
    TRACE0("Failed to create toolbar\n");
    return -1; // fail to create
    }
    if (!m_wndDBToolBar.CreateEx(this) ||
    !m_wndDBToolBar.LoadToolBar(IDR_TOOLBAR_DBLAYER))
    {
    TRACE0("Failed to create toolbar\n");
    return -1; // fail to create
    }

    if (!m\_wndReBar.Create(this) ||
       !m\_wndReBar.AddBar(&m\_wndDBToolBar) ||
       !m\_wndReBar.AddBar(&m\_wndToolBar))
    {
    	TRACE0("Failed to create rebar\\n");
    	return -1;      // fail to create
    }
    

    And It Looks Like This: ||Button1(from first toolbar)|Button2(from first toolbar)||Button1(from second toolbar When i hide the first toolbar i have this: ||Button 1(from second toolbar)||...And this area doesnt repaint!!! Only the Buttons on this panel are still ok... Please help...

    D 1 Reply Last reply
    0
    • R Rassul Yunussov

      I've got some problem with it. I try to make 2 toolbars with rebars, and when i show them all - everything is OK, but when i try to hide one of them - another toolbar doesn't repaint it self fully (just buttons that it has), and doesnt get the full avaluable area. Here how i make them:

      if (!m_wndToolBar.CreateEx(this) ||
      !m_wndToolBar.LoadToolBar(IDR_GPS_PANEL))
      {
      TRACE0("Failed to create toolbar\n");
      return -1; // fail to create
      }
      if (!m_wndDBToolBar.CreateEx(this) ||
      !m_wndDBToolBar.LoadToolBar(IDR_TOOLBAR_DBLAYER))
      {
      TRACE0("Failed to create toolbar\n");
      return -1; // fail to create
      }

      if (!m\_wndReBar.Create(this) ||
         !m\_wndReBar.AddBar(&m\_wndDBToolBar) ||
         !m\_wndReBar.AddBar(&m\_wndToolBar))
      {
      	TRACE0("Failed to create rebar\\n");
      	return -1;      // fail to create
      }
      

      And It Looks Like This: ||Button1(from first toolbar)|Button2(from first toolbar)||Button1(from second toolbar When i hide the first toolbar i have this: ||Button 1(from second toolbar)||...And this area doesnt repaint!!! Only the Buttons on this panel are still ok... Please help...

      D Offline
      D Offline
      Daniel Strigl
      wrote on last edited by
      #2

      How do you hide/show the toolbars (what kind of functions do you use)? Regards, Daniel. -- FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE. ;)

      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