Link to home
Start Free TrialLog in
Avatar of jtm082698
jtm082698

asked on

InputBox ??

Is there a counterpart to the MessageBox function in C++, something that acts like an InputBox.
ASKER CERTIFIED SOLUTION
Avatar of milenvk
milenvk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rabbitears
rabbitears

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