Make sure you call a paint after enable/disable of the button. (with UpdateWindow() or InvalidateRect() )