有没有办法在编辑公共控件添加自己的按钮? [英] Is there a way to add my own button inside the edit common control?

查看:158
本文介绍了有没有办法在编辑公共控件添加自己的按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说,如果我有一个默认值 EDIT common control 在我的基于MFC的对话窗口中:

Say, if I have a default EDIT common control in my MFC-based dialog window:

我正在寻找一种方法来添加一个小的X这是我的Photoshop渲染我需要的):

I'm looking for a way to add a small "X" (or delete) button inside of it (here's my Photoshop rendering of what I need):

有没有办法通过修改默认的编辑控制?

Is there a way to do it by modifying the default edit control?

推荐答案

请考虑使用新类 CMFCEditBrowseCtrl 。它有方法 CMFCEditBrowseCtrl :: EnableBrowseButton()做你所需要的。

Please consider using new class CMFCEditBrowseCtrl. It does have method CMFCEditBrowseCtrl::EnableBrowseButton() to do exactly what you need.

这篇关于有没有办法在编辑公共控件添加自己的按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆