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. Toolbars and Dialogs

Toolbars and Dialogs

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 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.
  • F Offline
    F Offline
    Florin Ochiana
    wrote on last edited by
    #1

    Hi, Is there anything diferent in working with toolbars in dialogs? I am trying to put a toolbar in a dialog and it doesn't appear although I didn't get any error. The code is if (!m_wndLowerButtons.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndLowerButtons.LoadToolBar(IDR_LOWER)) { TRACE0("Failed to create toolbar\n"); return -1; // fail to create } ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.

    J 1 Reply Last reply
    0
    • F Florin Ochiana

      Hi, Is there anything diferent in working with toolbars in dialogs? I am trying to put a toolbar in a dialog and it doesn't appear although I didn't get any error. The code is if (!m_wndLowerButtons.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndLowerButtons.LoadToolBar(IDR_LOWER)) { TRACE0("Failed to create toolbar\n"); return -1; // fail to create } ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.

      J Offline
      J Offline
      Jagadeesh VN
      wrote on last edited by
      #2

      See this URL: http://www.codeguru.com/dialog/toolbars.shtml "A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."

      F 1 Reply Last reply
      0
      • J Jagadeesh VN

        See this URL: http://www.codeguru.com/dialog/toolbars.shtml "A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."

        F Offline
        F Offline
        Florin Ochiana
        wrote on last edited by
        #3

        Thank you ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.

        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