Hi im trying to enumerate through opened windows(20 in this case) and dump their names in a listbox. Though i get a blank str always. How to fix it? Thanx.
Code:for(int i=0; i<20; i++) { CWnd *cwnd = GetNextWindow(); CString str; cwnd->GetWindowText(str); m_clbWndList.AddString(str); }