how to draw the button of dialog box?

mc 4,436 Reputation points
2024-08-27T15:32:22.1433333+00:00

I am using DialogBoxW(hInstance, MAKEINTRESOURCEW(IDD_ABOUTBOX), hwnd, WND_ABOUTUS); to open Dialog box.

and how to change the UI of the Button in the dialog?

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
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 9,666 Reputation points Microsoft Vendor
    2024-08-28T05:38:42.7566667+00:00

    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.

    0 comments No comments

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.