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. problem with setting bitmaps on propertysheet header and footer?

problem with setting bitmaps on propertysheet header and footer?

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelpquestion
2 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
    Banks K
    wrote on last edited by
    #1

    Hello All, Actually i am using in my application "PropertyPage and PropertySheet" so i have to set bitmap on PropertySheet header and footer for every page so for that i am trying as follows: constructor of my propertysheet class CMyPropertySheet::CMyPropertySheet(CWnd* pParentWnd, UINT iSelectPage, HBITMAP hWatermark, HPALETTE hpalWatermark, HBITMAP hHeader) : CPropertySheet(what i have to give caption ID here, pParentWnd, iSelectPage, hWatermark, hpalWatermark, hHeader) and i am calling that as follows: Bitmap bmWatermark; CBitmap bmHeader; if(!bmWatermark.LoadBitmap(IDB_BITMAP1)) return FALSE; if(!bmHeader.LoadBitmap(IDB_BITMAP1)) return FALSE; CMyPropertySheet MyPropSheet(NULL, 0, bmWatermark, NULL, bmHeader); for this i am only unable to understand what i have to caption id into CPropertySheet(....) constructor if i am giving some integer than it got crashed so if anybody have idea please share with me.......... thanks

    M 1 Reply Last reply
    0
    • B Banks K

      Hello All, Actually i am using in my application "PropertyPage and PropertySheet" so i have to set bitmap on PropertySheet header and footer for every page so for that i am trying as follows: constructor of my propertysheet class CMyPropertySheet::CMyPropertySheet(CWnd* pParentWnd, UINT iSelectPage, HBITMAP hWatermark, HPALETTE hpalWatermark, HBITMAP hHeader) : CPropertySheet(what i have to give caption ID here, pParentWnd, iSelectPage, hWatermark, hpalWatermark, hHeader) and i am calling that as follows: Bitmap bmWatermark; CBitmap bmHeader; if(!bmWatermark.LoadBitmap(IDB_BITMAP1)) return FALSE; if(!bmHeader.LoadBitmap(IDB_BITMAP1)) return FALSE; CMyPropertySheet MyPropSheet(NULL, 0, bmWatermark, NULL, bmHeader); for this i am only unable to understand what i have to caption id into CPropertySheet(....) constructor if i am giving some integer than it got crashed so if anybody have idea please share with me.......... thanks

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      The ID would be a resource ID of the string resource to use as a caption. There's also a constructor that takes a LPCTSTR so you could pass something like _T("My Caption"). Mark

      "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

      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