Hi,
In the rbuttondown event handler of a CView derived class, I intend to
create a child window as below. No matter how I adjust the CRect or
class name, the child window cannot show up. I specify WS_EX_TOPMOST
but see the child window maximized and then immediately hidden by the
CView derived class. Do you know why? Thanks for your help.
// m_wnd is a CWnd member in the CView derived class
CRect rect(32, 64, 152, 154);
//CalcWindowRect(&rect);
m_wnd.CreateEx(WS_EX_TOPMOST, _T("LISTBOX"), _T("My Window Title"),
WS_VISIBLE|WS_CHILD, rect, this, 0);
//m_wnd.ShowWindow(SW_SHOW);
m_wnd.ShowWindow(SW_SHOWMAXIMIZED);
Tony