Results 1 to 4 of 4

Thread: Ownerdraw buttons

  1. #1

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    Ownerdraw buttons

    When I set the button's style to BS_OWNERDRAW, it changes the button to just a simple rectangle - I can't see any text or other style on it. How can keep the button same as it was before but I still use the style "BS_OWNERDRAW"? I actually want to change the backcolor/forecolor of the button but I looked in MSDN library ,and it says that I need to set the button's style to ownerdraw, then I will recieve the message "WM_CTLCOLORBTN".
    Baaaaaaaaah

  2. #2

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    **bump** Nobody knows that????
    Baaaaaaaaah

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I believe OwnerDraw means what it says, the owner draws it. Windows (most likely) won't draw it for you. Therefore you should set the pixels, etc. to be a variant on the Backcolour, eg. your bgcolour is blue (0,0,255) so your top and left lines would be half-white-blue (128,128,255), the lines 1 pixel closer to the centre would be white (always) and the bottom would be black (0,0,0), for the text I guess you would also have to render this yourself...
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Dam it!! That is too much work Thanks anyway
    Baaaaaaaaah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width