Display number on the Push Button
-
Hai all, I want to display the number on the Push button. The button already loaded with bitmap. It starts with 0, whenever mouse click occurs on the client area, the counter starts counting and the next number we are going to used(clicked) on the client area should be display on the button. so far.... I tried by using DrawItem I don't know the proper way to handle the drawitem. Note: 1.Number to Display on the Button, that already loaded with Bitmap. 2. I tried to use Drawitem. With regards :( DARWIN PAUL RAJ
-
Hai all, I want to display the number on the Push button. The button already loaded with bitmap. It starts with 0, whenever mouse click occurs on the client area, the counter starts counting and the next number we are going to used(clicked) on the client area should be display on the button. so far.... I tried by using DrawItem I don't know the proper way to handle the drawitem. Note: 1.Number to Display on the Button, that already loaded with Bitmap. 2. I tried to use Drawitem. With regards :( DARWIN PAUL RAJ
use CBitmapButtons CBitmapButton bezier; bezier.LoadBitmaps(_T("IMAGE27UP"), _T("IMAGE27DOWN"), _T("IMAGE27DOWN"), _T("IMAGE27GREY")); bezier.SubclassDlgItem(IDC_BUTTON_BEZIER, this); bezier.SizeToContent(); then, if you want to change the image just use bezier.LoadBitmaps(_T("IMAGE29UP"), _T("IMAGE29DOWN"));