我在VIEW类的ON_KEYDOWN里设了以下语句:
COLORREF clrGet;
CClientDC dc(this);
clrGet = dc.GetPixel(30, 50);
但是无论点(30,50)的颜色如何,clrGet的值都是一样,如何解决啊?????!!!
COLORREF clrGet;
CClientDC dc(this);
clrGet = dc.GetPixel(30, 50);
但是无论点(30,50)的颜色如何,clrGet的值都是一样,如何解决啊?????!!!
解决方案 »
- vs2010编写的程序在xp和win2003下无法运行
- 求助:多页连续打印的走纸问题(附代码)
- 使用odbc查询,总是出现“在调用SQLFetchScroll/SQLExtendedFetch之前,没有列被绑定”的错误
- 如何在edit框中显示光标?
- 多线程串口通讯问题,请jjjtang(小桂子) 一定要进
- 哪里可以下载VC++
- 如何控制CMediaPlayer控件的视频大小?如100%,200%,全屏等.又如断定CMediaPlayer是否正在播放视频还是音频?
- WIN98下,dcom需要装什么组件,怎么配置,还需要什么代理吗?是个什么东东?WIN2000怎么配置,才能响应WIN98的客户端的响应!!很急!!
- Ycstdafx.h
- 怎么读有空行的文本文件
- 广播……
- 问:应用程序处理自定义的消息时,消息函数格式是否是规定的???
Retrieves the RGB color value of the pixel at the point specified by x and y. The point must be in the clipping region. If the point is not in the clipping region, the function has no effect and returns –1. Not all devices support the GetPixel function. For more information, see the RC_BITBLT raster capability under the GetDeviceCaps member function.是不是因为“Not all devices support the GetPixel function”呢?