jtm082698
asked on
InputBox ??
Is there a counterpart to the MessageBox function in C++, something that acts like an InputBox.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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