afxwin.h, Surface and CPalette classes
I'm trying to use the Surface and CPalette classes that are supported in windows API. I'm aware that CPalette class is included in afxwin.h. I've searched through a few forums (including this one) that it has to do with MFC not supported or the libraries/headers not being installed when Visual Studio was installed. However, I've checked on my IDE's installation and I believe it should be including afxwin.h. My goal is basically create device surface and palette objects perhaps using these methods rather than using EngXXX functions that are with the GDI technology that perform the same operations. It would be much appreciated if you can provide some recommendations if I were to use these two classes and how the problem with afxwin.h not being able to be included could be solved. Thanks.