Hello to all!
In the attachment screen program. + Attach code written in Visual Studio. C ++. via WinAPI.
How to remove this white frame around the button, or make it the background color? The button is created automatically through the resources by transferring it to the main program window.
case WM_INITDIALOG: { // Фон HBRUSH hBrush; HDC hdc; PAINTSTRUCT ps; RECT rc; COLORREF g_Green = RGB(0, 249, 249); hdc = BeginPaint(hwnd, &ps); GetClientRect(hwnd, &rc); hBrush = CreateSolidBrush(g_Green); // COLORREF g_Green = RGB(0,255,0); FillRect(hdc, &rc, hBrush); EndPaint(hwnd, &ps); DeleteObject(hBrush); // Кнопка HWND CMDListControl = GetDlgItem(hwnd, IDOK); HBITMAP hBitmap; hBitmap = LoadBitmap(hInst, MAKEINTRESOURCE(IDB_BITMAP1)); SendMessage(CMDListControl, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap); break; } 