Код:

hdc = BeginPaint(hhstatic1, &ps);
OnPaint(hdc, 2);
OnPaint(hdc, 3);
EndPaint(hhstatic1, &ps);
Ф-ция OnPaint:
Код:

VOID OnPaint(HDC hdc, int imagee)
{
if (imagee==2){
Graphics graphics(hdc);
Image image(L"E:\\TMP2\\button.png");
graphics.DrawImage(&image, 0, 0);
}
if (imagee==3){
Graphics graphics(hdc);
Image image(L"E:\\TMP2\\button2.png");
graphics.DrawImage(&image, 0, 0);
}
}
Скриншот(как выходит):

Скриншот(как должно быть):

Тоесь мне надо отрисовать button.png, и по ходу выполнения программы на место button.png (именно на место, а не поверх) отрисовать button2.png.