求mfc editbrowse control使用方法

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了求mfc editbrowse control使用方法相关的知识,希望对你有一定的参考价值。

选中文件之后,文件路径名存放在哪里,如果想默认一个文件路径名,又怎么做?

映射一个变量;然后设置他的文本即可;
控件变量 m_Control.SetWindowTextA("C:\\Program Files");
如果是字符串变量 设置完 需要用 UpdataData(False) 更新
m_stControl = "C:\\Program Files";
UpdataData(False);
参考技术A 无能为力

mfc 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.

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

 

以上是关于求mfc editbrowse control使用方法的主要内容,如果未能解决你的问题,请参考以下文章

MFC EditBrowse 控件在运行时不显示文件夹图标

MFC单文档视图下的List Control的滚动条无法拖动,不起作用,求大神解答

MFC list 控件

MFC编程 | tab control控件的使用

MFC控件Slider Control的使用

MFC Month Calendar Control 控件使用