在
typedef struct tagPALETTEENTRY { // pe
BYTE peRed;
BYTE peGreen;
BYTE peBlue;
BYTE peFlags;
} PALETTEENTRY; 结构中有peFlags,其中之一的值是:PC_NOCOLLAPSE:Specifies that the color be placed in an unused entry in the system palette instead of being matched to an existing color in the system palette. If there are no unused entries in the system palette, the color is matched normally. Once this color is in the system palette, colors in other logical palettes can be matched to this color.我大体理解这里的意思,但始终不是很清楚。1、上面提到的“matched normally”是什么意思?
2、还有一句话“windows保留了一个有20种颜色的内部系统调色板,当逻辑调色板在选取并实现时,一般都会被改变颜色表项的次序”,怎么理解?(一般来说,20种颜色在调色板的前20个索引吧?这里改变颜色表项次序是什么意思?)
typedef struct tagPALETTEENTRY { // pe
BYTE peRed;
BYTE peGreen;
BYTE peBlue;
BYTE peFlags;
} PALETTEENTRY; 结构中有peFlags,其中之一的值是:PC_NOCOLLAPSE:Specifies that the color be placed in an unused entry in the system palette instead of being matched to an existing color in the system palette. If there are no unused entries in the system palette, the color is matched normally. Once this color is in the system palette, colors in other logical palettes can be matched to this color.我大体理解这里的意思,但始终不是很清楚。1、上面提到的“matched normally”是什么意思?
2、还有一句话“windows保留了一个有20种颜色的内部系统调色板,当逻辑调色板在选取并实现时,一般都会被改变颜色表项的次序”,怎么理解?(一般来说,20种颜色在调色板的前20个索引吧?这里改变颜色表项次序是什么意思?)
解决方案 »
- 非模式对话框的消息循环如何书写?(sdk 版本)
- 如何将二进制数据文件显示在VC6.0的对话框控件中
- CWebBrowser2类Navigate方法,如何使用VARIANT * Headers参数
- 请教各位 list control 控件里面显示图片的问题?
- 关于多线程的问题。有书上说在mfc程序里面不能调用CreateThread函数启动新线程,是这样吗?
- 请问INTERNET_OPTION_CONNECT_TIMEOUT如何使用,才能有效?
- 关于IE编程的巨难问题
- 关于VC DC 中绘图的问题
- MFC 如何创建空白BMP文件?
- 在VC下使用ODBC绑定时间数据时的问题的解决!
- 200分,跪求ocx 安全警告的解决方法!!??解决后再开贴给分!
- 谁等解释下等同调色板的概念
PC_NOCOLLAPSE:使用系统调色板中未使用的条目来映射逻辑调色板中的颜色,如果不匹配,如果系统调色板中的条目都被使用(即:超过256),则进行匹配,最佳匹配
PC_RESERVED:防止其他窗口的逻辑调色板来匹配指定的系统调色板,从而在改变某个调色时(realize的时候),避免其他应用程序来改变自己的颜色(即:不处理WM_PALETTECHANGED消息)
#define POPULARITY_PALETTE 0
#define MEDIAN_CUT_PALETTE 1
#define FIXED_PALETTE 2