If not, do not create a// palette and just return NULLif(!(pfd.dwFlags & PFD_NEED_PALETTE))returnNULL;// Number of entries in palette. 8 bits yeilds 256 entriesnColors =1<< pfd.cColorBits;// Allocate space for a logical palette structure plus all the palette entriespPal = (LOGPALETT...
If not, do not create a// palette and just return NULLif(!(pfd.dwFlags & PFD_NEED_PALETTE))returnNULL;// Number of entries in palette. 8 bits yeilds 256 entriesnColors =1<< pfd.cColorBits;// Allocate space for a logical palette structure plus all the palette entriespPal = (LOGPALETT...