//example with an edit control
CEdit *m_ed;
Unsigned INT Handle = m_ed->m_hwnd;
CStatic *myStatic; // note it's a pointer
myStatic = GetControl(N); // N is the control number used when control was created
myStatic-> SetText("Text for control");