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 do I add a bitmap to a property sheet

How do I add a bitmap to a property sheet

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++graphics
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.
  • P Offline
    P Offline
    PaulJ
    wrote on last edited by
    #1

    I am creating a wizard using VC++ MFC, but I'm having trouble adding a bitmap header to the property sheet. My bitmap gets clipped by the property pages. What is the standard procedure to accomplish this?:confused: Paul Jahans

    J 1 Reply Last reply
    0
    • P PaulJ

      I am creating a wizard using VC++ MFC, but I'm having trouble adding a bitmap header to the property sheet. My bitmap gets clipped by the property pages. What is the standard procedure to accomplish this?:confused: Paul Jahans

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      If what you want is to allocate a little more space on top of the property sheet, add this snippet on your OnInitDialog():

      CRect rectWnd;
      GetWindowRect(rectWnd);
      SetWindowPos(NULL, 0, 0,
      	rectWnd.Width(),
      	rectWnd.Height() + 100,
      	SWP\_NOMOVE | SWP\_NOZORDER | SWP\_NOACTIVATE);
      
      CWnd \*pWnd=GetWindow(GW\_CHILD);
      
      while(pWnd!=NULL){
      	CRect rect;
      	pWnd->GetWindowRect(rect);
      	rect.OffsetRect(0,100);
      	ScreenToClient(rect);
      	pWnd->MoveWindow(rect,FALSE);
      	pWnd=pWnd->GetNextWindow();
      }
      

      (Of course you'll want to change the offset to fit the dimensions of the bitmap header.) Joaquín M López Muñoz Telefónica, Investgación y Desarrollo

      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