是否可以在MFC上通过GDI +创建编辑控件? [英] Is it possible to create edit control by GDI+ on MFC?

查看:65
本文介绍了是否可以在MFC上通过GDI +创建编辑控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



我想通过GDI +绘图创建一个编辑控件。



我alreay由GDI编辑了一个编辑控件,所以将GDI更改为GDI +,但它的工作原理很奇怪。



你能告诉我链接或示例代码吗?



谢谢。



我的尝试:



我通过使用GDI绘图来控制。

Hi all.

I want to create an edit control by GDI+ drawing.

I alreay made an edit contol by GDI, so change GDI to GDI+ but it works strangely.

Could you advise me link or sample code?

Thank you.

What I have tried:

I made a control by using GDI drawing.

推荐答案

你不能用GDI创建和编辑控件 - 你只能绘制它。 br />


在MFC中处理控件的最佳方法是使用资源编辑器。



A light weigth方法只有着色编辑控件



在MFC项目中,您通常使用GDI绘制一些特殊效果。这里有一些烹饪书
You cant "create" and edit control with GDI - you can only draw it.

The best way to deals with controls in MFC is the use of the resource editor.

A light weigth approach is only Colorizing edit control.

In a MFC project you normally use GDI for drawing some special effects. Here is some cook book for that.


这篇关于是否可以在MFC上通过GDI +创建编辑控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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