Home > Software engineering >  Win32 Settings, please take pictures of the button has been don't show, how to return a respons
Win32 Settings, please take pictures of the button has been don't show, how to return a respons

Time:10-06



Please, ladies and gentlemen, define a button with image is

How can display images

Excuse me, and I met

CodePudding user response:

CodePudding user response:

Baidu CxSkinButton

CodePudding user response:

Estimation is wrong path, or color is beyond 256 colors

CodePudding user response:

Here is to enable the option to set the picture
Did you set specific images

CodePudding user response:

Support this need comctl32. DLL 6.0 above, in fact there have been two versions in the system, a theme with a not to take, need application embedded manifest file specified using the topic can, without a theme is the sort of classic style, it is not supported,

CodePudding user response:

//from the "BS_BITMAP
"Hb_open=LoadBitmap (hInst, MAKEINTRESOURCE (IDB_BITMAP1));//IDI_OPEN));
SendDlgItemMessage (hwnd_dialog IDC_OPEN, BM_SETIMAGE IMAGE_BITMAP, (LPARAM) hb_open);

CodePudding user response:

reference 1st floor u013943420 response:

Here you write wrong, LoadBitmap from resource loading, you want to use:
LoadImage (hInstance, TEXT (" C: \ \ \ \ XXX XXX. BMP "), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);

CodePudding user response:

Directly in resources change!

CodePudding user response:

HBITMAP HBITMAP=LoadImage (... );
  • Related