CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2001
    Posts
    24

    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



  2. #2
    Join Date
    Feb 2002
    Location
    Maharashtra,India
    Posts
    5

    Re: edit box in dialog bar

    Have you tried declaring a variable and writing data exchange function for that edit control?


  3. #3
    Join Date
    Nov 2001
    Posts
    24

    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



  4. #4
    Join Date
    Feb 2002
    Posts
    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
  •  





Click Here to Expand Forum to Full Width

Featured