- 博客(13)
- 资源 (6)
- 收藏
- 关注
原创 透明位图的显示(转载)
包含透明色的位图的绘制方法有多种,最简单的方法是调用现成的函数:TransparentBlt,也可以通过自己的代码实现类似TransparentBlt的功能,实现过程也有两种形式,一种是事先做一张掩码位图,另一种是动态生成掩码位图。本文将介绍动态生成掩码位图绘制具有透明区域位图的方法。一、TransparentBlt 函数的使用 TransparentBlt 函数在Windows98/Window
2005-04-30 00:02:00 1208
原创 在MDI主框架窗口中添加位图(在视中加载位图)
要在视图中显示位图,难点在于控件需要自己添加,位置要自己定。在MDI中添加位图有如下几个步骤:首先添加一个显示控件。这里的添加和其他控件的添加相类似。有两个地方可以添加代码来创建控件:CtestMDIView::OnCreate 和 CtestMDIView::OnInitialUpdate。CtestMDIView::OnCreate 的执行点比较靠先。这里我为了自己的需要选择了在CtestMD
2005-04-29 22:26:00 976
原创 Invalidate函数的总结 - 也是界面刷新的总结(转载)
InvalidateRect只是增加重绘区域,在下次WM_PAINT的时候才生效InvalidateRect函数中的参数TRUE表示系统会在你画之前用背景色将所选区域覆盖一次,默认背景色为白色,可以通过设置BRUSH来改变背景色。Invalidate()之后:...OnPaint()->OnPrepareDC()->OnDraw()所以只是刷新在OnPaint()和OnDraw()函数中的绘图语句
2005-04-29 13:22:00 2939
原创 OnDraw()和OnPaint()兄弟(转载)
至于不见了的问题简单,因为当你的窗口改变后,会产生无效区域,这个无效的区域需要重画。一般Windows回发送两个消息WM_PAINT(通知客户区有变化)和WM_NCPAINT(通知非客户区有变化)。非客户区的重画系统自己搞定了,而客户区的重画需要我们自己来完成。这就需要OnDraw()或OnPaint()来重画窗口。OnDraw()和OnPaint()有什么区别呢?首先:我们先要明确CView类派
2005-04-29 13:11:00 1904
原创 在MDI主框架窗口中添加位图(转载自CSDN VC编程知识总结)
在MDI主框架窗口中添加位图(注意,不是在单个视中):首先要清楚对于一个MDI应用程序的主框架窗口来说包含一个特殊的子窗口称为MDICLIENT窗口,应用程序的主框架类中有一个成员变量m_hWndMDIClient 指的就是MDICLIENT窗口。MDICLIENT窗口负责管理主框架窗口的客户区,对MDI客户窗口编程有一定的难度。原因是MDIFrameWnd的客户区完全被MDICLIENT窗口覆盖
2005-04-29 12:50:00 997
原创 My study of VC++ ( Doc&View&FrameWnd refered )
5 important member functions:CView::GetDocument 得到与视图唯一对应的文档。GetDocument 不是虚函数,会用派生类来替代CDocument::UpdateAllViews 通知所有视图,文档数据发生变化,以便更新显示的数据。GetDocument()->UpdateAllViews(this);其中的非空参数阻止应用程序框架通知当前视图。还有可
2005-04-29 00:30:00 1145
原创 My study of VC++ ( FrameWnd and toobar refered )
主框架窗口的定位在SDI程序中,CWnd::GetParentFrame可以找到主框架窗口。在MDI程序中,CWnd::GetParentFrame找到的是父框架的子框架,而不是MDI框架窗口希望在SDI和MDI中都能工作,必须在应用程序对象中找到主框架窗口。而AfxGetApp全局函数返回一个指向应用程序对象的指针,可以通过它得到CWinapp数据成员m_pMainWnd。CMainFrame
2005-04-28 23:27:00 860
原创 My study of VC++ ( Command and Menu refered )
1。命令处理ON_COMMAND消息映射。派生类将继承父类的所有消息映射函数ON_UPDATE_COMMAND_UI。更新命令用户界面处理程序。在第一次显示弹出式菜单时被调用,修改菜单项的外观。例子:在头文件中加入: afx_msg void OnUpdateZoom(CCmdUI *pCmdUI);在视中加入: ON_UPDATE_COMMAND_UI(IDM_ZOOM, OnUpdateZoo
2005-04-28 22:14:00 983
原创 Directshow学习经历
学习《Directshow开发指南》时想把第五章的例子试验一下,结果犯了个低级错误:初始化之前没有调用CoInitialize对Com初始化,导致Com的调用始终失败
2005-04-28 21:16:00 851
原创 Python Resource
Book : Python Programming on Win32 -- http://starship.python.net/crew/mhammond/ppw32/index.htmlPage :Mark Hammonds Free Stuff -- http://starship.python.net/crew/mhammond/宝哇网 -- http://www.baow.com/do
2005-04-17 22:06:00 944
原创 Linux经典图书
0001 GNU/Linux高级网络应用服务指南 linuxaid网站 机械工业出版社 优点:又全又精,全都是实战之作 缺点:针对版本较低:redhat 6.2 0002 Linux Apache Web Server管理指南 Charles Aulds 电子工业出版社 优点:目前我还没有发现哪个关于apache的问题这本书没有讲过 缺点:针对1.3.x
2005-04-17 21:38:00 773
Network Flows Theory, Algorithms, and Applications-1
2011-05-29
Network Flows Theory, Algorithms, and Applications
2011-05-29
level set methods and dynamic implicit surfaces
2011-05-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人