|
-
February 18th, 2002, 10:08 PM
#1
edit box in dialog bar
some one can help me plz?
my application use SDI, i use dialog bar at my application.
in dialog bar i create edit box as my data input. when i write data input in edit box i cannot capture the contain of edit box,
i want my data input is a floating value.
help me to enter data input in edit box at dialog bar!
thanks
-
February 19th, 2002, 12:11 AM
#2
Re: edit box in dialog bar
Have you tried declaring a variable and writing data exchange function for that edit control?
-
February 19th, 2002, 07:24 PM
#3
Re: edit box in dialog bar
i cannot do it because i dont understand, i don't know what variable name and variable type i should create, and what function i should create,
how to transfer the edit box as IDC_EDIT ID with the variable that i create.
help me plz
-
February 21st, 2002, 06:09 AM
#4
Re: edit box in dialog bar
Go to Class Wizard and create a member varible
to IDC_EDIT ID edit control with Value and type CString.
Add a message handler to the dialog for EN_CHANGE.
In that message handler call UpdateData(TRUE) which
does the data exchange from the control to your member
variable. Get the floating point value from the
variable using C's "atoi" function.
Good Luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|