473,571 Members | 3,049 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 2950
>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.publi c.vc.language
microsoft.publi c.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

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 tried :S A while ago, I came accross this post by Armin describing how to reporduce a focus bug with MDI children. I am currently experiencing the...
2
2260
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 and then a second toolbar should be opened. Can anybody help me??? Many greetings Sandra
6
3235
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." exception. The problem is that this exception isn't raised somewhere in a method, so it just shows up, and it causes the application to shut down. ...
2
5963
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 a group of Sales people, the customers they deal with and the business they transact with them. I've got my head around all the tables & some of...
3
3681
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 site, performs a search based on POST variables, retrieves the code, parses the information (including a url for a thumbnail image) and displays the...
4
2500
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 usual way? If yes, may you provide a hint/link for getting started? Best regards,
5
1988
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: *************************************************************************************************************** { ........................... PrintTimeSpanProblem(); device = new Device(0, DeviceType.Hardware, this,...
4
3657
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 haven't decided what the best way to do this is because I don't have much experience with generating printable forms. Early on I knew one of my...
1
5758
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 the user changes the computer settings. I'm not interested in the event that fires, what I need is an approach to setting the font that is not...
0
7956
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7703
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6336
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3684
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3671
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2136
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 we have to send another system
1
1238
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
974
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.