i am using a string command to get the value of a textbox located in a dialogbox and equate it with variable "X". i am using the folloing:
hwndX = GetDlgItem(hDlg, IDC_FWEDIT);
GetWindowText(hwndX, txt1, 10);
X = atof(txt1);
how can i do the oposite?????
i want to send the value of "X" into the textbox. i've tried setdlgitem() and setwindowtext() but it doesnt work.
PLEASE HELP!!! URGENT!!!!
THANK YOU!
You don't have to get a window handle to the control when you use SetDlgItemInt() or SetDlgItemText(). The window parameter is the window handle of the window that contains the control.