wow 镜头距离:请教: VC++中picture控件有哪些方法?怎样清空此控件?

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 15:08:12

Picture控件实际不只是一个CStatic类,派生于CWnd,它独有的方法如下所述:

Initialization

Create Creates the Windows static control and attaches it to the CStatic object.

Operations

SetBitmap Specifies a bitmap to be displayed in the static control.
GetBitmap Retrieves the handle of the bitmap previously set with SetBitmap.
SetIcon Specifies an icon to be displayed in the static control.
GetIcon Retrieves the handle of the icon previously set with SetIcon.
SetCursor Specifies a cursor image to be displayed in the static control.
GetCursor Retrieves the handle of the cursor image previously set with SetCursor.
SetEnhMetaFile Specifies an enhanced metafile to be displayed in the static control.
GetEnhMetaFile Retrieves the handle of the enhanced metafile previously set with SetEnhMetaFile.

实际上在VC++里面它并没有多大的作用,任何一个CWnd都可以完成绘图工作,而CStatic并没有增加多少有用的功能,它只是简单封装了一下API

用CStatic吧