The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: xandaz on May 22, 2011, 09:25:40 PM

Title: Custom toolbar draw backroung... help pls.!!!
Post by: xandaz on May 22, 2011, 09:25:40 PM
    Hi there again guys. I'm trying to learn about custom controls and i'm working on a toolbar for starters. I draw the buttons by returning CDRF_NOTIFYDRAWITEM and then draw when the the dwDrawStage is CDDS_ITEMPREPAINT. the buttons draw, but, i can't figure out when or how to draw the background. Can someone help please? Thanks and bye.
Title: Re: Custom toolbar draw backroung... help pls.!!!
Post by: xandaz on May 24, 2011, 07:24:02 PM
  Well.... i ended finding out how to draw the toolbar's background but now it seems irrelevant to me. If you're going through the same issue i recomend doing the background drawing opperation when CDDS_PREPAINT. I'm  posting the example i made of the Custom draw Toolbar. It kinda resembles to the example of someone here i don't remember who, except he did with ownerdrawn buttons.
  Thanks a lot and goodbye´
   Later
   Best regards from X