Im having trouble getting my program to work in 8 bit mode (256 colors), it looks like madness. I want the program to work on one palette but i can't get it select the colors.
I used CreatePalette then i use SelectPalette to select it in the tempDC (seems to work), then RealizePalette and the return value is 0 (no colors were selected)?? does anyone have a example that works or know of a tutorial?
I used CreatePalette then i use SelectPalette to select it in the tempDC (seems to work), then RealizePalette and the return value is 0 (no colors were selected)?? does anyone have a example that works or know of a tutorial?
you need to select the palette into the DC of your main window. Did you mean that with tempDC?
And did you fill the palette struc with this:
And did you fill the palette struc with this:
mov [eax.palVersion], 0300h
mov [eax.palNumEntries], 256
... than it should work