Solved

graphical User Interface

Posted on 1999-01-21
2
300 Views
Last Modified: 2010-04-16
I am trying to create graphical user interface using Visual C++ 5.0. Can anyone guide me the right procedures?
0
Comment
Question by:YL
2 Comments
 

Expert Comment

by:ramrocket
ID: 1184743
What kind of GUI?
0
 
LVL 3

Accepted Solution

by:
_Scotch_ earned 100 total points
ID: 1184744
Your question is wide open YL, there are as many types of GUI
as there are programmers who write them...  I'll go out on a
limb and bet that you want to make a dialog based GUI - thats
an excellent choice for a first pass at an application.

Click File -> New.  Click on the "projects" tab.  Then click
on "MFC application" and type the applications name in the edit
box provided, (ie FOO).  Then click on next or ok (cant remember
what the button is).  Select a "dialog based application" and
OK/NEXT your way through the wizard...

Once the wizard is done you have a GUI -- all it has at this
point though is a OK button and a CANCEL button but its still
a GUI :)  What you do next is click on msvc's "resource tab",
its the one with a picture of a cactus...  Click on the "dialog"
folder so you see your "IDD_FOO_DIALOG" choice and doubleclick
on that.  It should pop your dialog box...

Stretch it out, add buttons, listboxes, sliders, etc -- whatever
your app will need.  You can play with it by clicking on the
little "lightswitch" in the lower left hand corner... You assign
text and other behaviours to your controls that need them by right-clicking the control and dragging it down to "properties" and plugging in what you want.

When you've got the controls placed you simply right-click in the
dialog and drag it down to "classwizard".  Doubleclick your way
through all the messages that you want to handle -- InitDialog
is a must ;)...

Voila!  You have an application - just fill in the required code.
fields.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question