472,357 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,357 software developers and data experts.

Creating forms, toolbars etc using Visual C++ 6.0

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

Nov 17 '05 #1
11 2828
>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
Nov 17 '05 #2
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


Nov 17 '05 #3


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

Nov 17 '05 #4
>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 didn't say Windows Forms. WinForms are managed code only AFAIK.

I've not tried them myself, but I believe the express product only
comes with facilities to develop managed applications.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #5
Hi Dave,

Thanks for the prompt response. Do you know how forms (Frames) can be
developped using VS2003 ?. Does it have a "proper" forms designer (ala
VB) in VS2003? - or does one have to create forms via Dialog boxes as
your last message seemed to suggest?

Lastly, is it possible to create toolboxes like the control toolbox that
VC (or even VB) displays ? - once again any links to such sample apps
would be very welcome.

mtia - Paul

David Lowndes wrote:
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 didn't say Windows Forms. WinForms are managed code only AFAIK.

I've not tried them myself, but I believe the express product only
comes with facilities to develop managed applications.

Dave


Nov 17 '05 #6
Paul Tremblay wrote:
Hi Dave,

Thanks for the prompt response. Do you know how forms (Frames) can be
developped using VS2003 ?. Does it have a "proper" forms designer (ala
VB) in VS2003? - or does one have to create forms via Dialog boxes as
your last message seemed to suggest?

Lastly, is it possible to create toolboxes like the control toolbox
that VC (or even VB) displays ? - once again any links to such sample
apps would be very welcome.

mtia - Paul


"Forms" is a vague term.

WinForms is a pure managed technology, targeted by VC++ 2003 and later (or
C#/VB 2002 and later).

You can also build a "forms" application by building conventional windows
dialogs, using the MFC/Win32 dialog editor and built-in or custom controls.
You can still do that in VC++ 2003 and 2005. You cannot, however, do that
using VC++ 2005 Express, which is apparently what you've got (aside from
VC6).

There are MFC examples and controls for just about all of what you're asking
for. I'd suggest starting with a general overview (and the Scribble
tutorial, as David mentioned). See

http://msdn.microsoft.com/library/de...XE_Program.asp

for a good "jumping off" point for MFC development topics.

-cd
Nov 17 '05 #7
Paul Tremblay wrote:
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.


This one's fine. You might also try:

microsoft.public.vc.language
microsoft.public.vc.mfc

All of these newsgroups can be accessed via NNTP through news.microsoft.com,
or via web browser through http://msdn.microsoft.com/newsgroups/.

-cd
Nov 17 '05 #8
<snip>
You can also build a "forms" application by building conventional windows
dialogs, using the MFC/Win32 dialog editor and built-in or custom controls.
You can still do that in VC++ 2003 and 2005. You cannot, however, do that
using VC++ 2005 Express, which is apparently what you've got (aside from
VC6).

</snip>

Hi Carl,

Many thanks for that - I think the approach to take is beginning to
become clearer to me: It seems I can use either VC++ 6.0 or VS 2003 (I
have access to the Archiect edition at work) to build MFC applications.
However, I believe (I stand to be corrected), in VC++, "forms" (to
borrow from VB terminology) are built using the dialog editor (is that
correct)?

Last but not the least, I would be grateful for answers to these questions:

Q1). Can I use MFC in VS 2003 (using the Dialog Editor - rather
misleading name that) to create a UI - and then build a native binary
from the designed user interfaces (i.e. for the entire application) ?

Q2). I don't need to use PInvoke or C++/InterOp in my application - I
can #include the headers, link to the libs and build a native binary of
my app (even though I am using BS 2003)?

Q3). Do I get the XP look and feel "for free" when I use the Design
Editor in VS 2003 to create my user interfaces (Window Frames) ? or do I
have to resort to "work arounds" kindly provided by David in his earlier
post?

I look forward to your response.

mtia - Paul

Nov 17 '05 #9
Paul Tremblay wrote:
<snip>
You can also build a "forms" application by building conventional
windows dialogs, using the MFC/Win32 dialog editor and built-in or
custom controls. You can still do that in VC++ 2003 and 2005. You
cannot, however, do that using VC++ 2005 Express, which is
apparently what you've got (aside from VC6).
</snip>

Hi Carl,

Many thanks for that - I think the approach to take is beginning to
become clearer to me: It seems I can use either VC++ 6.0 or VS 2003 (I
have access to the Archiect edition at work) to build MFC
applications. However, I believe (I stand to be corrected), in VC++,
"forms" (to borrow from VB terminology) are built using the dialog editor
(is that
correct)?


Correct.
Last but not the least, I would be grateful for answers to these
questions:
Q1). Can I use MFC in VS 2003 (using the Dialog Editor - rather
misleading name that) to create a UI - and then build a native binary
from the designed user interfaces (i.e. for the entire application) ?
100% native, yes. You can also build your own custom window classes if your
app isn't really "form-based" (e.g. Word, Excel, etc). MFC has an extensive
"document view" (a bastardization of MVC) architecture for building
applications that are basically document editors (like Word).
Q2). I don't need to use PInvoke or C++/InterOp in my application - I
can #include the headers, link to the libs and build a native binary
of my app (even though I am using BS 2003)?
Absolutely. Still true with VC++ 2005 as well (and will always be true).
Q3). Do I get the XP look and feel "for free" when I use the Design
Editor in VS 2003 to create my user interfaces (Window Frames) ? or
do I have to resort to "work arounds" kindly provided by David in his
earlier post?


You don't get the XP look and feel for free unless you use winforms, which
handles all the XP-theme stuff for you behind the scenes.

-cd
Nov 17 '05 #10
Thank you very much Carl. I have all the information I need to make a
decision now.

many thanks for your help

Carl Daniel [VC++ MVP] wrote:
Paul Tremblay wrote:
<snip>
You can also build a "forms" application by building conventional
windows dialogs, using the MFC/Win32 dialog editor and built-in or
custom controls. You can still do that in VC++ 2003 and 2005. You
cannot, however, do that using VC++ 2005 Express, which is
apparently what you've got (aside from VC6).


</snip>

Hi Carl,

Many thanks for that - I think the approach to take is beginning to
become clearer to me: It seems I can use either VC++ 6.0 or VS 2003 (I
have access to the Archiect edition at work) to build MFC
applications. However, I believe (I stand to be corrected), in VC++,
"forms" (to borrow from VB terminology) are built using the dialog editor
(is that
correct)?

Correct.

Last but not the least, I would be grateful for answers to these
questions:
Q1). Can I use MFC in VS 2003 (using the Dialog Editor - rather
misleading name that) to create a UI - and then build a native binary
from the designed user interfaces (i.e. for the entire application) ?

100% native, yes. You can also build your own custom window classes if your
app isn't really "form-based" (e.g. Word, Excel, etc). MFC has an extensive
"document view" (a bastardization of MVC) architecture for building
applications that are basically document editors (like Word).

Q2). I don't need to use PInvoke or C++/InterOp in my application - I
can #include the headers, link to the libs and build a native binary
of my app (even though I am using BS 2003)?

Absolutely. Still true with VC++ 2005 as well (and will always be true).

Q3). Do I get the XP look and feel "for free" when I use the Design
Editor in VS 2003 to create my user interfaces (Window Frames) ? or
do I have to resort to "work arounds" kindly provided by David in his
earlier post?

You don't get the XP look and feel for free unless you use winforms, which
handles all the XP-theme stuff for you behind the scenes.

-cd


Nov 17 '05 #11
>Q3). Do I get the XP look and feel "for free" when I use the Design
Editor in VS 2003 to create my user interfaces (Window Frames) ? or do I
have to resort to "work arounds" kindly provided by David in his earlier
post?


Paul,

They're not work-arounds - it's the way it is!

To get the XP themed look you have to have your application use the V6
common controls - which you do by using a manifest (as shown in that
MSDN article I referenced).

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Trev Hunter | last post by:
Hi Folks, Sorry if you have seen this post before - I've posted it before, but it seems to have gotten lost in Outlook limbo - it's visible on the web interface, but not in any news reader I've...
2
by: Sandra | last post by:
Hello, I want to develop an application for WindowsCE using eMbedded Visual C++ 4.0. Is it possible to add/delete or hide/show toolbars by running the application. e.g. the user choose a menuitem...
6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
2
by: Iain Miller | last post by:
Now this shouldn't be hard but I've been struggling on the best way as to how to do this one for a day or 3 so I thought I'd ask the assembled company..... I'm writing an application that tracks...
3
by: EnglishMan69 | last post by:
Hello All, I am using VB2005 Beta 2 in VS 2005 and am running into a small problem. I need to be able to add a picture box to the main form from within a thread. The program goes to a web...
4
by: Henrik Dahl | last post by:
Hello! Is it possible to use Visual Studio 2005 or, secondarily, Visual Studio .NET 2003 to create ActiveX controls which may be consumed by VB 6.0 programs, i.e. dealt with on forms in the...
5
by: Vibhesh | last post by:
I am facing problem with TimeSpan structure when DirectX is used. Following is the sample code that causes the problem: ...
4
by: sklett | last post by:
I've developed an ERP application that we use internally and works quite well. I receiving more and more requests from users to print various transactions, order forms, search results, etc. I...
1
by: =?Utf-8?B?dmFwb3I=?= | last post by:
I'm interested in getting a Windows forms font to resize similar to what happens with the Windows toolbars when the end-user changes the system font. With the Windows toolbar, the font 'grows' as...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.