I have a Dialog window and on it I have an edit box. I want to retrieve the integer value in the edit box and point it to a variable. However the following code does not work:
where IDD_DLGPie is my dialogue window and txtVal1 is the edit box.Code:
int Pval1 = GetDlgItemInt(IDD_DLGPie, txtVal1, 0, FALSE);
I place the code in the WM_COMMAND: case.