how to remove border of picture ?

mc 4,436 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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,693 questions
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 9,666 Reputation points Microsoft Vendor
    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.