In function, Subwindow1::OpenSubwindow() I great a second window, known as dlg2, using
WithTheSubWindow<TopWindow> dlg2;
CtrlLayoutOK(dlg2, "This is the subwindow");
Which opens fine. And I can access that window as dlg2 only in this function. How do I access things in that window in another function else where. Like I have a button that gets the size of the window. It calls another functions, but when I type in dlg2. I get nothing. I have tried all kinds of things, but nothing seems to get me to that window so I can change things on it like labels or get information from it.
How can I access this window from another function.