Hi all,
I am practicing some win32 programming in Nim. So far so good. Now, i am able to change the back color of the button by handling WM_NOTIFY message and NM_CUSTOMDRAW. But i can't change the text color of my button.
See this code.
Code:
SetBkMode(lp.hdc, TRANSPARENT) 
SetTextColor(lp.hdc, RGB(102, 255, 51) )
This is not working. I hope someone will point me to the right direction.
Note : I am using a subclassed button. So when my window procedure get's the wm_notify message, it sends a special message to my button's wndproc. Then i receive LPNMCUSTOMDRAW struct and doing my color changing work.