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. how to insert buttons in toolbar?

how to insert buttons in toolbar?

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

    hi all, have u know about, how to insert buttons in tool bar. if you know , please help me thanks panthal

    P C 2 Replies Last reply
    0
    • P panthal

      hi all, have u know about, how to insert buttons in tool bar. if you know , please help me thanks panthal

      P Offline
      P Offline
      Paresh Chitte
      wrote on last edited by
      #2

      Search in MSDN. Also please look at this[^]. Regards, Paresh.

      1 Reply Last reply
      0
      • P panthal

        hi all, have u know about, how to insert buttons in tool bar. if you know , please help me thanks panthal

        C Offline
        C Offline
        chandu004
        wrote on last edited by
        #3

        are you talking about inserting buttons to the toolbar of an sdi application? if so, then you have to go to resource view tab,expand toolbar,click on IDR_MAINFRAME, and then add now button there. any more clarifications? welcome.

        -------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.

        P 1 Reply Last reply
        0
        • C chandu004

          are you talking about inserting buttons to the toolbar of an sdi application? if so, then you have to go to resource view tab,expand toolbar,click on IDR_MAINFRAME, and then add now button there. any more clarifications? welcome.

          -------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.

          P Offline
          P Offline
          panthal
          wrote on last edited by
          #4

          hi, there is no option to insert buttons in resource view i used this code to insert a button, but i 'am in need to have 4 buttons, that was not working. int mWidth = 125; int mHeight = 25; m_wndToolBar.SetButtonInfo(14, IDC_EMPBAPPLY, TBBS_SEPARATOR,mWidth); CRect rect; m_wndToolBar.GetItemRect(14, &rect); rect.bottom = rect.top + mHeight; CString Etext = "Employee"; m_EMPBApply.Create(Etext, WS_VISIBLE, rect, this, IDC_EMPBAPPLY); thanks panthal

          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