Bitmap as background

This is a discussion on Bitmap as background within the Windows Programming forums, part of the Platform Specific Boards category; Hi all, I have to add a bitmap as background in my win32 program cause I'd like to substitute the ...

  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,255
    ...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, 03:42 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21