Thread: Owner draw button with bitmap

  1. #1

    Owner draw button with bitmap

    Ok, when I have an owner draw button, if it also has the BS_BITMAP style how do I add the bitmap to it?

    I mean, actually draw the bitmap on, not sending the message to set the image.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Use BS_OWNERDRAW style (alone) and read up on WM_DRAWITEM notification.

    gg

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Here's a great place to look around.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. Replace button with a bitmap
    By Swarvy in forum Windows Programming
    Replies: 10
    Last Post: 09-12-2008, 11:43 AM
  3. Replies: 2
    Last Post: 06-28-2008, 08:30 PM
  4. Problems defining classes
    By esmeco in forum C++ Programming
    Replies: 47
    Last Post: 10-24-2007, 01:13 PM
  5. OpenGL -- Bitmaps
    By HQSneaker in forum Game Programming
    Replies: 14
    Last Post: 09-06-2004, 04:04 PM