如下:
Font newfont;
VARIANT newValue;
newValue=newfont.GetColor();
// newfont.SetColor(const VARIANT &newValue);
newfont.SetColor(newValue);
如果我要显示为红色,newValue的值应如何?
为什么我的字符的颜色设定不到呢?
Font newfont;
VARIANT newValue;
newValue=newfont.GetColor();
// newfont.SetColor(const VARIANT &newValue);
newfont.SetColor(newValue);
如果我要显示为红色,newValue的值应如何?
为什么我的字符的颜色设定不到呢?
如何办?
是VARIANT就转换一下嘛。
newfont.SetColor(COleVariant(long(255)));