For example in the Dialog Window Proc I assign some values to an integer variable. Than I need to use this variable in another Proc such as WndProc but it does not recognize the variable in WndProc, says it is not declared. Is there a way to somehow declare a public integer that will be seen in all procedures?
Sets a value for Pval1
BOOL CALLBACK PieDlgProc(HWND dlghwnd, UINT Message, WPARAM wParam, LPARAM lParam)
int Pval1 = GetDlgItemInt(dlghwnd, txtVal1, 0, FALSE);
Now I need to use this value in WM_PAIT,
But I get error that Pval1 is not declared in WM_PAINT.
AngleArc(ps.hdc, 400, 300, 150, 0, Pval1);