how to remove border of picture ?

mc 5,471 Reputation points
2024-09-05T01:41:12.44+00:00

User's image

I create dialog using DialogBoxW(hInstance,MAKEINTERESOURCE(IDD_PICTURE1),O_WND); and there is picture on it how to remove its border.

Windows development | Windows API - Win32
Developer technologies | C++
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
    2024-09-05T06:41:09.0033333+00:00

    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?

    User's image

    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=''"")
    

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.