I'm try to add a child window to a generic top level window in my application. I've 'written' the window class of the top level window. The window I'm trying to create is of window class type "ConsoleWindowClass".
I'm using the call below to create the child console:
hConsole = CreateWindow(_T("ConsoleWindowClass"), _T("Console"), WS_CHILD, 5, 5, CW_USEDEFAULT, CW_USEDEFAULT, hWnd, NULL, hInst, NULL);
I thought this would do it, but what I get is a console class window not embedded in my wrapper window. That is, the console window is another top level overlapped window.
Being a noob at this stuff sucks. As such, any help would be appreciated.
I'm using the call below to create the child console:
hConsole = CreateWindow(_T("ConsoleWindowClass"), _T("Console"), WS_CHILD, 5, 5, CW_USEDEFAULT, CW_USEDEFAULT, hWnd, NULL, hInst, NULL);
I thought this would do it, but what I get is a console class window not embedded in my wrapper window. That is, the console window is another top level overlapped window.
Being a noob at this stuff sucks. As such, any help would be appreciated.