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. CPropertyPage bitmaps

CPropertyPage bitmaps

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

    I have a wizard page created with the CPropertyPage class. I place a bitmap with the dialog editor at position (0,0). When running the dialog, the class places a border around the entire dialog, part of which contains the wizard pushbuttons. Thus my bitmap does not start at the upper left corner, but is offset by about 10 pixels X & Y. - Does anyone know how I can load a bitmap starting at (0,0) on a CPropertyPage? - Does anyone know how I can change the text of the Cancel pushbutton on a CPropertyPage? Thanks in advance, Bob

    J 1 Reply Last reply
    0
    • M moobob

      I have a wizard page created with the CPropertyPage class. I place a bitmap with the dialog editor at position (0,0). When running the dialog, the class places a border around the entire dialog, part of which contains the wizard pushbuttons. Thus my bitmap does not start at the upper left corner, but is offset by about 10 pixels X & Y. - Does anyone know how I can load a bitmap starting at (0,0) on a CPropertyPage? - Does anyone know how I can change the text of the Cancel pushbutton on a CPropertyPage? Thanks in advance, Bob

      J Offline
      J Offline
      James R Twine
      wrote on last edited by
      #2

      The bitmap is appearing in the correct place: location 0,0 of the Page.  If you want the bitmap to appear at location 0,0 on the Sheet (the containing window that holds the buttons and the tab control), I believe you need to draw it manually from within the CPropertySheet-derived class.  This is likely to cause problems, however, because the Sheet is not going to know that you are drawing things there.    You can obtain a temporary CWnd pointer for [Cancel] by calling GetDlgItem( IDCANCEL ) from within the CPropertySheet-derived class, after the Sheet proper has been created.  Using that pointer, you can move, size, enable, change the text, etc. of [Cancel].    Peace! -=- James. "Fat people are hard to kidnap." (Try Check Favorites Sometime!)

      M 1 Reply Last reply
      0
      • J James R Twine

        The bitmap is appearing in the correct place: location 0,0 of the Page.  If you want the bitmap to appear at location 0,0 on the Sheet (the containing window that holds the buttons and the tab control), I believe you need to draw it manually from within the CPropertySheet-derived class.  This is likely to cause problems, however, because the Sheet is not going to know that you are drawing things there.    You can obtain a temporary CWnd pointer for [Cancel] by calling GetDlgItem( IDCANCEL ) from within the CPropertySheet-derived class, after the Sheet proper has been created.  Using that pointer, you can move, size, enable, change the text, etc. of [Cancel].    Peace! -=- James. "Fat people are hard to kidnap." (Try Check Favorites Sometime!)

        M Offline
        M Offline
        moobob
        wrote on last edited by
        #3

        James, Thanks for your response. I was able to place the bitmap on the property sheet. The problem is that when the pages get added, they overlay the bitmap. Is there anyway to have the pages added at some offset so they don't overlay the bitmap on the sheet? Thanks, Bob

        J 1 Reply Last reply
        0
        • M moobob

          James, Thanks for your response. I was able to place the bitmap on the property sheet. The problem is that when the pages get added, they overlay the bitmap. Is there anyway to have the pages added at some offset so they don't overlay the bitmap on the sheet? Thanks, Bob

          J Offline
          J Offline
          James R Twine
          wrote on last edited by
          #4

          Not that I know of, but you could place the bitmap/icon at the same location on each of the property pages.  That is what I do...    Peace! -=- James. "Fat people are hard to kidnap." (Try Check Favorites Sometime!)

          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