According to the Doc: DialogBoxW macro
lpTemplate: The dialog box template.
Could you please tell us whether the IDD_PICTURE1
is the name of the dialog box template? Whether you want to remove border of the dialog box?
Do you want to get a border in this style?
If so, I suggest you could try to enable visual styles. Refer to the Doc: Visual Styles Overview
#pragma comment(linker,""/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='' publicKeyToken='6595b64144ccf1df' language=''"")