473,511 Members | 11,345 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2943
>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
480
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
2254
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
3230
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
5954
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
3678
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
2492
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
1978
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
3652
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
5754
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...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.