使用Visual C ++ 6.0创建表单,工具栏等 [英] Creating forms, toolbars etc using Visual C++ 6.0

查看:100
本文介绍了使用Visual C ++ 6.0创建表单,工具栏等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我似乎无法找到visual C ++(pre .NET)ng。这可能很轻微

关于这里的主题 - 请指出我是否正确。


没有详细介绍(并重复几次) ),我/ b
使用Visual C ++ 6.0开发应用程序 - *而不是.Net。我使用MFC来创建我的GUI组件。


我对使用GUI进行ff特别感兴趣:

1)。实现XP的外观和感觉

2)。创建浮动/可记录工具栏

3)。可视化设计一个表单(有点像可以使用VB完成),这样我就可以在表单上放置组件(例如图像,组合框等)

design时间


有谁能指点我一些样品,告诉我怎么做

这个。请注意:我已经知道所有这些都可以完成(并且在.Net中可以轻松完成

),所以请不要试图说服我创建GUI

in dotNet - 我已经解释了为什么我不想在之前的帖子中找到.Net

路线。


我会是非常感谢我收到的任何反馈。


非常感谢


Paul

解决方案

>我对用我的GUI做ff特别感兴趣:


1)。实现XP外观


Paul,


查看使用Windows XP视觉样式在MSDN上:

http://msdn.microsoft.com/library/en.../xptheming.asp

2)。创建浮动/可记录工具栏
3)。可视化设计表单(有点像可以使用VB完成),这样我就可以在设计时在表单上放置组件(例如图像,组合框等)


您可以使用VC6创建工具栏,并使用

IDE的对话框编辑器设计表单(对话框)。

任何人都可以指点我一些样品告诉我该怎么做
这个。


如果您还没有这样做,请使用Scribble MFC教程 -

应与VC6一起提供。

请注意:我已经知道所有这些都可以完成(并且可以在.Net中轻松完成),所以请不要试图说服我在dotNet中创建GUI
- 我已经已经解释了为什么我不想在早先的帖子中找到.Net
路线。




您仍然可以使用VS2002 / 3/5生成本机MFC应用程序,因为你可以使用VC6来获得
。它们不一定是托管代码,如果你发现它有利,你可以获得更符合标准的
C ++编译器。


Dave

-

MVP VC ++ FAQ: http://www.mvps.org/vcfaq


David,


非常感谢您提供的信息和链接。在我有机会阅读

文档后,我可能会有一个或更多的额外问题 - 我希望你不介意。


Paul

David Lowndes写道:

我对用我的GUI做ff特别感兴趣:

1)。实现XP外观



保罗,

查看使用Windows XP视觉样式在MSDN上:

http://msdn.microsoft.com/library/en.../xptheming.asp

2)。创建浮动/可记录工具栏
3)。可视化设计表单(有点像可以使用VB完成),这样我就可以在设计时将表单(例如图像,组合框等)放在表单上


您可以使用VC6创建工具栏,并使用
IDE的对话框编辑器设计表单(对话框)。

任何人都可以请指出一些示例,告诉我如何操作
这个。



如果您还没有这样做,请执行Scribble MFC教程 - 其中
应该随VC6提供。

请注意:我已经知道所有这些都可以完成(并且在.Net中更容易完成),所以请不要试图说服我在dotNet中创建GUI
- 我已经解释过为什么我不想在之前的帖子中找到.Net
路由。


您仍然可以使用VS2002 / 3/5生成本机MFC应用程序,因为您可以使用VC6。它们不必是托管代码,如果你发现它有利,你可以获得更符合标准的C ++编译器的好处。

戴夫







David Lowndes写道:


< snip>

您仍然可以使用VS2002 / 3/5生成本机MFC应用程序,因为您可以使用VC6。它们不必是托管代码,如果你发现它有利,你可以获得更符合标准的C ++编译器的好处。



< / snip>


嗨Dave,


这对我来说最有趣 - 你有一个链接显示如何

Windows Forms可以在VS2003中设计(我已下载快递

版本),然后从Windows生成一个* natrive *应用程序

表单 - 我认为我不需要在我现有的C ++库中使用PInvoke或C ++ / InterOp来调用函数/方法(这实际上是

的终极解决方案 - 易于GUI设计,符合ANSI标准的编译器和

本机二进制编译 - 在任何地方都没有MSIL代码或PE)。


期待您的回复 - mtia


Hi,

I can''t seem to locate the visual C++ (pre .NET) ng. This may be slight
off topic here - please point me to the correct ng if it is.

Without going into much detail (and repeating myself several times), I
am using Visual C++ 6.0 to develop applications - *instead* of .Net. I
am using the MFC to create my GUI components.

I am particularly interested in doing the ff with my GUI:

1). Achieving the XP look and feel
2). Creating floating/docakable toolbars
3). Visually designing a form (a bit like can be done using VB), so that
I can place components (e.g. images, combo boxes etc) on the form at
design time

Could anyone please point me to some samples that show me how to do
this. Please note: I already know all this can be done (and done more
easily in .Net), so please do not try to convince me to create the GUI
in dotNet - I''ve already explained why I don''t want to go down the .Net
route in an earlier post.

I would be extremely grateful for any feedback I receive.

Many thanks

Paul

解决方案

>I am particularly interested in doing the ff with my GUI:


1). Achieving the XP look and feel
Paul,

Have a look at "Using Windows XP Visual Styles" on MSDN:

http://msdn.microsoft.com/library/en.../xptheming.asp
2). Creating floating/docakable toolbars
3). Visually designing a form (a bit like can be done using VB), so that
I can place components (e.g. images, combo boxes etc) on the form at
design time
You can create toolbars with VC6, and design a form (dialog) using the
IDE''s dialog editor.
Could anyone please point me to some samples that show me how to do
this.
If you''ve not already done so, do the Scribble MFC tutorial - which
should be supplied with your VC6.
Please note: I already know all this can be done (and done more
easily in .Net), so please do not try to convince me to create the GUI
in dotNet - I''ve already explained why I don''t want to go down the .Net
route in an earlier post.



You can still use VS2002/3/5 to produce native MFC applications as you
can with VC6. They don''t have to be managed code and if you''d find it
advantageous, you get the benefit of a much more standard compliant
C++ compiler .

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq


David,

Thank you very much for the information and links. I may have one or
more additional questions after I have had a chance to read the
documentation - I hope you don''t mind.

Many thanks once again.

Paul
David Lowndes wrote:

I am particularly interested in doing the ff with my GUI:

1). Achieving the XP look and feel


Paul,

Have a look at "Using Windows XP Visual Styles" on MSDN:

http://msdn.microsoft.com/library/en.../xptheming.asp

2). Creating floating/docakable toolbars
3). Visually designing a form (a bit like can be done using VB), so that
I can place components (e.g. images, combo boxes etc) on the form at
design time


You can create toolbars with VC6, and design a form (dialog) using the
IDE''s dialog editor.

Could anyone please point me to some samples that show me how to do
this.


If you''ve not already done so, do the Scribble MFC tutorial - which
should be supplied with your VC6.

Please note: I already know all this can be done (and done more
easily in .Net), so please do not try to convince me to create the GUI
in dotNet - I''ve already explained why I don''t want to go down the .Net
route in an earlier post.


You can still use VS2002/3/5 to produce native MFC applications as you
can with VC6. They don''t have to be managed code and if you''d find it
advantageous, you get the benefit of a much more standard compliant
C++ compiler .

Dave






David Lowndes wrote:

<snip>

You can still use VS2002/3/5 to produce native MFC applications as you
can with VC6. They don''t have to be managed code and if you''d find it
advantageous, you get the benefit of a much more standard compliant
C++ compiler .


</snip>

Hi Dave,

This is most interesting from me - do you have a link that shows how
Windows Forms can be designed in VS2003 (I''ve downloaded express
version) and then generate a *natrive* application from the Windows
Forms - I take it that I will not have to use PInvoke or C++/InterOp to
call functions/methods in my existing C++ libraries (this is actually
the ultimate solution - ease of GUI design, ANSI compliant compiler and
native binary compilation - with no MSIL code or PE anywhere).

Look forward to your reply - mtia


这篇关于使用Visual C ++ 6.0创建表单,工具栏等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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