如题,仅知道窗口句柄hWnd,窗口背景色如何获得?
解决方案 »
- char *p to unsigned char *p
- 求教:TXT文档如何读取(VC,VS2008环境里的解决方案均可)
- 请大家看看这段代码,我想数据存入数组,但实现不了,帮帮忙吧
- 24 bit的图片数据数组, 已经知道长和宽和指向数组的指针, 求缩放的最快算法
- 如何在listview中显示图标?
- 帮帮忙吧
- 很简单的问题,进来捡分
- 万分焦急,今晚必需解决:如何找回消失的系统托盘图标?
- CRichEditView中关键字着色的问题
- win95下运行的软件和win98下的编译方法有何不同?
- 我想问一下,我现在有一段vc代码,里面有窗口,但在我想得到窗口上的控件名,与控件下的代码,如何才能看到呢?
- 谁来讲一下ODBC/MFC 中3个类的分别作用??如何详细的理解这3个类??
if(NULL != hDC)
{
COLORREF color = GetBkColor(hDC);
::ReleaseDC(hWnd, hDC);
}
This method retrieves the background color.COLORREF GetBkColor( )
const;
Return Value
An RGB color value.Res
If the background mode is OPAQUE, the system uses the background color to fill the gaps in styled lines, the gaps between hatched lines in brushes, and the background in character cells. The system also uses the background color when converting bitmaps between color and monochrome device contexts