Description: Although Windows has a really cool GUI, sometimes the way standard buttons look quite does not meet our requirements. We may then choose buttons with a style called "owner-draw". The owner has to draw the button in every aspect (background, border, text, image) of every situation that requires drawing (click, enable, focus, etc.).It took me days to come up with something functional, Now here is some simple, reliable code: if it proves useful I will write something about owner-draw buttons with text (dealing with fonts, shapes, edges, colorrefs, brushes and pens).
File list (Check if you may need any files):
odib.aspx.htm
odib.aspx_files
...............\addto.js
...............\AddTo_Blink.png
...............\AddTo_Delicious.png
...............\AddTo_Digg.png
...............\AddTo_Furl.png
...............\AddTo_Live.png
...............\AddTo_Newsvine.png
...............\AddTo_Reddit.png
...............\AddTo_Simpy.png
...............\AddTo_Spurl.png
...............\AddTo_stumbleupon.png
...............\AddTo_Technorati.png
...............\AddTo_Yahoo.png
...............\broken.gif
...............\CodeProject.css
...............\codeproject225x90.gif
...............\discuss.gif
...............\F6FD92D0-C724-4553-831F-9DFEA8EFA71F.png
...............\fave.gif
...............\ForumClassic.css
...............\forum_faq.gif
...............\forum_newmsg.gif
...............\forum_search.gif
...............\FR.gif
...............\link.png
...............\mail.gif
...............\member_sm.gif
...............\menu132_com.js
...............\msg_answer.gif
...............\msg_general.gif
...............\news_admin.gif
...............\news_answer.gif
...............\news_game.gif
...............\news_general.gif
...............\news_info.gif
...............\news_question.gif
...............\odib_screenshot.png
...............\oncopy.js
...............\print.gif
...............\prize_winner.gif
...............\red.gif
...............\ServeHTML.htm
...............\ServeHTML_002.htm
...............\ServeHTML_data
...............\..............\InsertFlash.js
...............\ServeHTML_data_002
...............\ServeImg.htm
...............\ServeImg_002.htm
...............\ServeImg_003.htm
...............\ServeLinks.htm
...............\ShortCuts.js
...............\smiley_confused.gif
...............\smiley_cry.gif
...............\smiley_redface.gif
...............\smiley_smile.gif
...............\staff_sm.gif
...............\t.gif
...............\thumbs_down.gif
...............\thumbs_up.gif
...............\TogglePre.js
...............\tools.gif
...............\TopNavBar.js
...............\t_002.gif
...............\urchin.js
...............\white.gif
odib_src_mingw.zip
odib_src_visual_studio.zip