News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Custom toolbar draw backroung... help pls.!!!

Started by xandaz, May 22, 2011, 09:25:40 PM

Previous topic - Next topic

xandaz

    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.

xandaz

  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