Results 1 to 2 of 2

Thread: Read from editbox

  1. #1
    Ragnar
    Guest

    Read from editbox

    Whats the code for reading from a editbox?
    For example, if I type in "Hello" in the editbox and then press a button, a textlabel (IDC_STATIC) on the form will change to "Hello"
    How would the code look?

    /Ragnar

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Hope this will help

    PHP Code:
    char *Buff = new char[20];
    memset(Buff020);
    GetDlgItemText(hDlgIDC_EDIT1Buff,20);
    MessageBox(hDlgBuff"Result"MB_OK);
    delete [] Buff

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