¡@

Home 

c++ Programming Glossary: creategradientbrush

How can I change the background color of a button WinAPI C++

http://stackoverflow.com/questions/18745447/how-can-i-change-the-background-color-of-a-button-winapi-c

IDC_EXIT_BUTTON 101 #define IDC_PUSHLIKE_BUTTON 102 HBRUSH CreateGradientBrush COLORREF top COLORREF bottom LPNMCUSTOMDRAW item HBRUSH Brush.. the button is selected if selectbrush NULL selectbrush CreateGradientBrush RGB 180 0 0 RGB 255 180 0 item Create pen for button border.. the mouse hovers our button if hotbrush NULL hotbrush CreateGradientBrush RGB 255 230 0 RGB 245 0 0 item HPEN pen CreatePen PS_INSIDEFRAME..