Solved

graphical User Interface

Posted on 1999-01-21
2
298 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now