Jump to content
Tuts 4 You

how to get data from edit


DavidOliveira

Recommended Posts

DavidOliveira
Posted

hey people,i want to get data from edit and show to the user,

Posted

For most window interaction SendMessage is your friend. In this case GetWindowText might help.

On a side note, this forum is meant to help you with problems you can't solve yourself. It is not a replacement for google or a decent C++ reference or MSDN.

Posted
DWORD WINAPI GenerateSerial(HWND hwnd){
unsigned char name[MAX_NAME];
char serial[MAX_SERIAL];
memset(serial,0,MAX_SERIAL); if(GetDlgItemText(hwnd,IDC_NAME,(char*)name,MAX_NAME)<MIN_NAME)
{
SetDlgItemText(hwnd, IDC_SERIAL,"Please enter a longer name...");
return 1;
}
process_serial((char*)name, serial);
SetDlgItemText(hwnd, IDC_SERIAL,serial);
return 0;
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...