|
-
June 21st, 2004, 02:33 AM
#4
Thanks Amit,but....
Thank you ,but these articles helps me to create a colored buttons, what i need is : How to change color of a button that i added to the FormView. and how do i change his color on runtime ( for example - when i push him i change his color )
i already tried :
CDC *pDC;
CButton *pButton1 = (CButton*) GetDlgItem(IDC_BUTTON1);
if ( pButton1 != NULL )
{
pDC = pButton1->GetDC();
pDC->SetBKColor(rgb(255,0,0);
}
GetDlgItem(IDC_BUTTON1)->RedrawWindow();
Why doesn't this work?
How do i paint a button ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|