How to access value of CStatic data type

  • Thread starter Thread starter ribash1816
  • Start date Start date
R

ribash1816

Guest
My dialog box label IDC_LABLE_X with id IDC_static_X which accesses data (DDX) from variable CStatic data_X.

I could set the value of label(IDC_LABLE_X) by using function setWindowText()

CStatic data_X;

data_X.SetWindowText("hi");


But I cannot figure out how to retrieve the same value. I have tried using GetWindowText(), GetWindowTextA() with no success

data_X.GetWindowText()// this needs an arguement which is out of my scope


Any help will be highly appreciated.

Continue reading...
 
Back
Top