ApplSet( APS_FLAG, FLG_NOPAL, TRUE);This option can be usefull when you write a desktop accessory. Suppose that a WinDom desktop accessory is launched, it use the current palette to initialize its application palette, but if the default palette was changed by a second accessory, for example, Xcontrol, when our WinDom desktop accessory will open a window, the weired palette will be restored. That's why your application should disable the palette handling in such cases.
If your accessory really needs its own palette, you should get the real value of the default palette.
Note that it is easy to modify the application palette with the current palette like that:
vs_getpal( app.palette);