When you create a modal dialog box by using the DialogBox
function. You must specify the identifier or name of a dialog box template resource and a pointer to the dialog box procedure.
IDD_ABOUTBOX
is a dialog box template resource.
If you want to create your customize dialog box, I suggest you could try to use CreateWindowEx
instead of DialogBox. And then you could use BS_BITMAP
and BM_SETIMAGE
to set the bitmap to the button.