VC++中picture控件有哪些方法?怎样清空此控件
展开全部
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
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
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询