VC++中picture控件有哪些方法?怎样清空此控件
发布网友
发布时间:2023-07-13 23:22
我来回答
共1个回答
热心网友
时间:2023-09-24 08:39
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