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. Mainframe without a toolbar?

Mainframe without a toolbar?

Scheduled Pinned Locked Moved C / C++ / MFC
architecturehelpquestion
4 Posts 4 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.
  • C Offline
    C Offline
    clintsinger
    wrote on last edited by
    #1

    I would like to be able to create a CFrameWnd derived class that doesn't need a toolbar. Right now I have a single doc/view architecture and if I remove IDR_MAINFRAME (default menu item), I get an error about not being able to create an empty document. How does one get rid of the toolbar? Cheers, Clint

    N R M 3 Replies Last reply
    0
    • C clintsinger

      I would like to be able to create a CFrameWnd derived class that doesn't need a toolbar. Right now I have a single doc/view architecture and if I remove IDR_MAINFRAME (default menu item), I get an error about not being able to create an empty document. How does one get rid of the toolbar? Cheers, Clint

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      One way would just be to hide it before the app becomes visible. Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com

      1 Reply Last reply
      0
      • C clintsinger

        I would like to be able to create a CFrameWnd derived class that doesn't need a toolbar. Right now I have a single doc/view architecture and if I remove IDR_MAINFRAME (default menu item), I get an error about not being able to create an empty document. How does one get rid of the toolbar? Cheers, Clint

        R Offline
        R Offline
        Ryan Binns
        wrote on last edited by
        #3

        Your toolbar is a member variable inside your CFrameWnd-derived class. Just delete the variable and all references to it, and it won't be there. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
        Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

        1 Reply Last reply
        0
        • C clintsinger

          I would like to be able to create a CFrameWnd derived class that doesn't need a toolbar. Right now I have a single doc/view architecture and if I remove IDR_MAINFRAME (default menu item), I get an error about not being able to create an empty document. How does one get rid of the toolbar? Cheers, Clint

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          clintsinger wrote: How does one get rid of the toolbar? Go to CMainFrame::OnCreate() and remove the line that creates the toolbar. --Mike-- "So where does that leave us? Well, it leaves us right back where we started, only more confused than before." -- Matt Gullett Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber

          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