hey i was wondering how to create a Input dialog in C++ without using the .rc....
I mean i have created a window which shows the mouse position..joystick workings and all but now i need a button which would trigger a function that will allow the user to enter a charter.
Actually that program allows a user to perform particular function when a keyboard button is pressed.For instance,if 'W' is pressed then a message box apprears saying W is pressed.
but i need to make it so that the user would b able to select the charcter...i hope i made the question clear...
I m stuck with the project ...doin a Game engine..so need to use this function for letting user select the button for his action...
plz help me soon...i need to submit the project soon..
thanks for any help
I'm not sure whether this is what you're looking for - but you can create buttons, text boxes, and stuff like that on a regular (non-dialog) window. You use CreateWindow to set up these controls, and then use them like you would a regular dialog-box control.
For details: CreateWindow Function (scroll down to the Remarks section)
Are you talking about getting user input under a Windows app, right? (Your phrasing isn't very clear, and I assume by charter you mean character)
If that is the case, just look up a combination of WM_KEYDOWN/WM_KEYUP, "Message Loop", and "Window Procedure"
Anyways, MSDN is your friend:
it helped me..i mean taking a input from the user and then checking which key the user pressed..so that i can show a pop up msg.the whole thing should b in a dialog box..thats all...