Click here to Skip to main content
15,889,889 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,codeprojecters
i have a question how would i put a bitmap on my button in dynamic library the bitmaps needs to be in /themes/ for who want a costum button

What I have tried:

I tried loadbitmap and etc but it didnt work
Posted
Updated 13-Aug-16 1:58am

If LoadBitmap() fails call GetLastError() to know the reason for the error.

Loading a bitmap from file (especially by a dynamic library) is a bad idea because you have to hard code the path to the file. For this reason I expect the error code to be 2 (ERROR_FILE_NOT_FOUND).

A better solution would be including the bitmap as resource in the DLL.
 
Share this answer
 
Do you have any example on how to do it and display the image on the button??
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900