So I was trying to make an image button using the WIN32 API.
The problem is, that the image gets cropped, because the button is smaller than the image.
In a statics control, I would user the SS_REALSIZECONTROL
tag, but in a button that doesn't seem to work.
Here is how I created the button:
hButton = CreateWindowA("Button", NULL, WS_VISIBLE | WS_CHILD | BS_BITMAP, 10, 10, 70, 70, hWindow, BUTTON_ID, NULL, NULL);
And here is how I set its image:
SendMessageA(hButton, BM_SETIMAGE, IMAGE_BITMAP, hBitmap);