Solved

graphical User Interface

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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 how to clear a vector as well as how to detect empty vectors in C++.

760 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

21 Experts available now in Live!

Get 1:1 Help Now