随笔 - 15  文章 - 4  评论 - 1  阅读 - 49821

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   粒子少爷  阅读(244)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示