Thread: Bitmap as background

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    45

    Exclamation Bitmap as background

    Hi all, I have to add a bitmap as background in my win32 program cause I'd like to substitute the horrible gray window color with a bitmap, is ti possible?
    Some link to see some examples.

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Yes, use a brush created with CreatePatternBrush for the hbrBackground member of the WNDCLASSEX structure.

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    ...Assuming you aren't and never plan to target Windows 95, otherwise it gets tricky: you'll have to manage the background drawing yourself.

  4. #4
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    Take a look at:
    BitBlt()
    LoadBitmap()
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using bitmap as background in CListView
    By mepaco in forum Windows Programming
    Replies: 9
    Last Post: 06-15-2011, 10:22 AM
  2. Put a bitmap in a toolbars background
    By Joelito in forum Windows Programming
    Replies: 2
    Last Post: 06-30-2007, 02:27 PM
  3. Load Bitmap as Window Background
    By Epo in forum Windows Programming
    Replies: 6
    Last Post: 07-19-2005, 09:37 AM
  4. OpenGL -- Bitmaps
    By HQSneaker in forum Game Programming
    Replies: 14
    Last Post: 09-06-2004, 04:04 PM
  5. 2-D background bitmap behind a 3D wold using OpenGL
    By Laeeqhamid in forum Game Programming
    Replies: 6
    Last Post: 12-28-2002, 04:42 AM