有个比较弱的问题,在线等待... 我刚学VC不久!请问,在软件中怎样实现(像屏幕抓图软件一样)在屏幕上选取一个矩形区域,并得到所选区域的坐标?谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Use SetCapture() OnMouseMove()to get the rect that you wannt get.Copy the bitmap in the region you selected: GetDC(NULL)//Get entire screen dc CDC::BitBlt()//copy the bits of selected region to your desire dc 定义两个CPoint,bool m_bFirst=ture;在lbuttondown中if(m_bFirst){ m_FirstPoint=point;m_bFirst=false}elsem_SecondPoint=point; http://www.vckbase.com/document/viewdoc.asp?id=235 一个关于在桌面上双缓冲输出文字的问题 小鸟求教...关于学习界面编程 谁做过曲线控件啊? 求VC++技术内幕 第五版 源代码 怎样将BMP文件变暗或变亮显示 用ATL开发的ActiveX控件如何打包发布! 今天面试,面官问了我一个问题,俺不懂TCP,哪位大侠帮个忙。 大侠,请问怎么看一个现成的软件是用什么语言写的? 一个关于坐标映射的难点!当然会者不难! 关于用Socket,请各位提示一下!!!!! 关于“::”的用处 关于mfc使用crystal report处理打印的问题 急
SetCapture()
OnMouseMove()
to get the rect that you wannt get.
Copy the bitmap in the region you selected:
GetDC(NULL)//Get entire screen dc
CDC::BitBlt()//copy the bits of selected region to your desire dc
在lbuttondown
中if(m_bFirst)
{ m_FirstPoint=point;
m_bFirst=false
}
else
m_SecondPoint=point;