如何得到当前画图指针pDC的颜色? 如何得到当前画图指针pDC的颜色?调用什么函数? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 GetBrush, then GetLogBrush。Color is in the LOGBRUSH structor, GetPen, then GetLogPen。Color is in the LOGPEN struct GetLogBrush is a member function of CBrushGetLogPen is a member function of CPen COLORREF MYSHAPE::GetDCColor(CDC *pDC){ CPen *mypen=pDC->GetCurrentPen(); LOGPEN mylogpen; mypen->GetLogPen(&mylogpen); return mylogpen.lopnColor;}行了,问题解决了,谢谢!! 可伸缩的窗口 ??怎么样根据给的条件在 CListctrl 控件中检索???????????????????? 我的VC6.0为什么一调试就死机? 如何去掉默认的提示“请键入一个数” 谁有 中文词自动切分 的控件,非常需要,谢谢 -1.#IND0000000是怎么回事? 如果想让一个窗口弹出MessageBox,应该向它发送什么消息,有什么参数? 如何动态生成多个按钮? 如何得到new以后的分配空间大小? 序列化碰到奇怪问题,解决给分 自己构造IP和TCP包头的问题 我的托盘程序弹出菜单为何不完整?
or, GetPen, then GetLogPen。Color is in the LOGPEN struct
GetLogPen is a member function of CPen
{
CPen *mypen=pDC->GetCurrentPen();
LOGPEN mylogpen;
mypen->GetLogPen(&mylogpen);
return mylogpen.lopnColor;
}
行了,问题解决了,谢谢!!