Picture Control 控件

Picture Control 控件属性

 CStatic

 图片控件

 图片控件使用

 

一、图片控件属性

Picture Control 属性:

Type:Frame //框架

Type:Etched Horz水平蚀刻线条

Type:Etched Vert垂真蚀刻线条

Type:Rectangle实心矩形

Type:Bitmap位图

Type:Icon  图标

Type:Enhanced Metafile 增强图元 支持wmf格式图片

Type:Owner Draw   自绘图

Color:颜色

    Black:黑

    Gray:灰色

    White:白色

    Etched:蚀刻

 

二、Picture Control 控件类

CStatic::

SetBitmap

Specifies a bitmap to be displayed in the static control.

指定要在静态控件中显示的位图。

GetBitmap

Retrieves the handle of the bitmap previously set with SetBitmap.

检索以前使用SetBitmap设置的位图的句柄。

SetIcon

Specifies an icon to be displayed in the static control.

指定要在静态控件中显示的图标。

GetIcon

Retrieves the handle of the icon previously set with SetIcon.

检索以前使用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.

检索以前使用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

检索以前使用SetEnhMetaFile设置的增强元文件的句柄

posted on 2021-08-09 15:13  粒子少爷  阅读(216)  评论(0编辑  收藏  举报