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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CToolBarCtrl, ¡¡ Help, please !!

CToolBarCtrl, ¡¡ Help, please !!

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialhelp
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.
  • R Offline
    R Offline
    Rafael Fernandez Lopez
    wrote on last edited by
    #1

    Michael Dunn told me "Use the CCS_NOPARENTALIGN style". I've used it but what I win with this is that I can set up the height free, but I am not able to put 30 pixels from left for example. I use this function to call the CToolBarCtrl: my_tool_bar.Create(WS_CHILD|WS_VISIBLE|CCS_NODIVIDER|CCS_NOPARENTALIGN, CRect(0, 110, 80, 80), this, IDC_MY_TOOL_BAR); If I set up like this: my_tool_bar.Create(WS_CHILD|WS_VISIBLE|CCS_NODIVIDER|CCS_NOPARENTALIGN, CRect(30, 110, 80, 80), this, IDC_MY_TOOL_BAR); The top fails... I don't know what to do... Please, if you could put me an example of how to create a CToolBarCtrl with no top or bottom alignment into the window... I want to draw it into a CRect from the Window. Thanks in advance !!!


    Written by: Rafael Fernández López.

    void life ( bool me, bool her ) {

    if ( her ) { me = true ; } else { me = false ; }

    }

    R 1 Reply Last reply
    0
    • R Rafael Fernandez Lopez

      Michael Dunn told me "Use the CCS_NOPARENTALIGN style". I've used it but what I win with this is that I can set up the height free, but I am not able to put 30 pixels from left for example. I use this function to call the CToolBarCtrl: my_tool_bar.Create(WS_CHILD|WS_VISIBLE|CCS_NODIVIDER|CCS_NOPARENTALIGN, CRect(0, 110, 80, 80), this, IDC_MY_TOOL_BAR); If I set up like this: my_tool_bar.Create(WS_CHILD|WS_VISIBLE|CCS_NODIVIDER|CCS_NOPARENTALIGN, CRect(30, 110, 80, 80), this, IDC_MY_TOOL_BAR); The top fails... I don't know what to do... Please, if you could put me an example of how to create a CToolBarCtrl with no top or bottom alignment into the window... I want to draw it into a CRect from the Window. Thanks in advance !!!


      Written by: Rafael Fernández López.

      void life ( bool me, bool her ) {

      if ( her ) { me = true ; } else { me = false ; }

      }

      R Offline
      R Offline
      Rafael Fernandez Lopez
      wrote on last edited by
      #2

      Well, I solved it: my_tool_bar.Create(WS_CHILD|WS_VISIBLE|CCS_NODIVIDER|CCS_NOPARENTALIGN|CBRS_NOALIGN|CBRS_FLYBY, CRect(30, 110, 80, 80), this, IDC_MY_TOOL_BAR); Thanx anyway !! ;)


      Written by: Rafael Fernández López.

      void life ( bool me, bool her ) {

      if ( her ) { me = true ; } else { me = 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