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. Add buttons to a Property Sheet

Add buttons to a Property Sheet

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
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.
  • B Offline
    B Offline
    bcemick
    wrote on last edited by
    #1

    I've been reseaching Property Sheets for a couple of days now and I'm starting to get the hang of them. I have created a Property Sheet with 5 Property pages; each page contains some controls for displaying and manipulating data. What I'm wondering is how do I go about adding buttons and a menu to the Property Sheet, not the Property Page? I've read a few things here and other places, but nothing seems to fit (or work) with what I'm working on. Any help would be appreciated.

    PJ ArendsP 1 Reply Last reply
    0
    • B bcemick

      I've been reseaching Property Sheets for a couple of days now and I'm starting to get the hang of them. I have created a Property Sheet with 5 Property pages; each page contains some controls for displaying and manipulating data. What I'm wondering is how do I go about adding buttons and a menu to the Property Sheet, not the Property Page? I've read a few things here and other places, but nothing seems to fit (or work) with what I'm working on. Any help would be appreciated.

      PJ ArendsP Offline
      PJ ArendsP Offline
      PJ Arends
      wrote on last edited by
      #2

      Everything is done in your propertysheet's OnCreate() member function. For a menu, add a CMenu variable (m_Menu) to your property sheet class. In OnCreate call

      m_Menu.LoadMenu(IDR_MENU1);
      SetMenu(&m_Menu);

      For buttons, add CButton members to your property sheet class. In OnCreate call m_Button.Create(...) for each button. You can handle the commands from the menu and buttons using regular MFC message mapping.


      "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!


      Honoured as one of The Most Helpful Members of 2004

      Within you lies the power for good; Use it!

      B 1 Reply Last reply
      0
      • PJ ArendsP PJ Arends

        Everything is done in your propertysheet's OnCreate() member function. For a menu, add a CMenu variable (m_Menu) to your property sheet class. In OnCreate call

        m_Menu.LoadMenu(IDR_MENU1);
        SetMenu(&m_Menu);

        For buttons, add CButton members to your property sheet class. In OnCreate call m_Button.Create(...) for each button. You can handle the commands from the menu and buttons using regular MFC message mapping.


        "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!


        Honoured as one of The Most Helpful Members of 2004

        B Offline
        B Offline
        bcemick
        wrote on last edited by
        #3

        Thank you. I was expecting some long, drawn-out ordeal. Once again, I was over-thinking the whole process.

        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