How do I get my child window of a CWnd object to display?
Posted on 1998-01-28
I know I'm most likely missing some fundamental knowledge here, but I have a CWnd object (unfortunately, it's not a CMDIFrameWnd or even a CFrameWnd), can I create a visible child using Create() or CreateEx()? I create an instance of an oject derived from CWnd, and the call its Create() function giving it a parent. I then call show and update, I declare the window style as WS_CHILD | WS_VISIBLE so I'm not sure I need to do this, but anyway I don't see the window. I'm not sure how MFC handles the message loop. Is is running in CWinThread? Do I need to create my own so that the window will update? I've been used to dealing with only MDI child windows and never had to implement this stuff with MFC. Any help would be greatly appreciated.