how to put more than 256 color bitmap in dialog?
-
Hi All, In the dialog box, I can put a bitmap by importing the bitmap in the Resource View. However, as far as I know (and tried), it is limited to 256 color bitmap only. Is it possible to put higher color space bitmap such as 24-bit for picture in the dialog box? Thank you
-Houari
-
Hi All, In the dialog box, I can put a bitmap by importing the bitmap in the Resource View. However, as far as I know (and tried), it is limited to 256 color bitmap only. Is it possible to put higher color space bitmap such as 24-bit for picture in the dialog box? Thank you
-Houari
You must be using an older Visual Studio :) If I remember correctly, older versions didn't have an editor for bit-depths > 8 but you could still add them to a resource script (RC file). Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
You must be using an older Visual Studio :) If I remember correctly, older versions didn't have an editor for bit-depths > 8 but you could still add them to a resource script (RC file). Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
ah yes, i am using VS 6.0 ^^ and how can add them using resource script? thanks...
-Houari
A typical BITMAP resource[^] in your app's .RC file looks something like IDB_BITMAP1 BITMAP "res\\bitmap1.bmp" where IDB_BITMAP1 is the identifier and the pathname of the bitmap file is in quotes. If you want VS to insert the code for you, you could add an 8-bit bitmap in the editor then replace the created BMP file with your 24-bit bitmap. Or edit the RC file by hand - it's a text file.
Mark Salsbery Microsoft MVP - Visual C++ :java: