Solved

InputBox ??

Posted on 1998-08-28
2
282 Views
Last Modified: 2010-04-10
Is there a counterpart to the MessageBox function in C++, something that acts like an InputBox.
0
Comment
Question by:jtm082698
2 Comments
 
LVL 2

Accepted Solution

by:
milenvk earned 50 total points
ID: 1171519
There is no such a standard dialog, though Visual Basic adds one, but it is still not available in Win32 SDK. The good news is that it's fairly easy to create that kind of dialog yourself and put it in a dll for instance...
0
 

Expert Comment

by:rabbitears
ID: 1171520
simple answer.. nope :) it would be INCREDIBLY simple to write your own class to do this.. you wouldn't even need a dialog template.. you could create the dialog, static text, and edit control dynamically and call it like this:

CInputBox input("What is your name?");
answer = input.DoModal();

Actually, DoModal() can be placed in your constructor so all you would have to do is call the first line..

the reason why there's not really anything like this is because there ARE  few set backs to that situation.. think about all the style bits that are involved with an edit box..  if there were a general function to do this, it would require SEVERAL parameters in order for you to get the input box you want..

hope this helps
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

758 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