I am a beginner with win32 programs, and am trying to integrate my console into a window.
My console program starts a new thread which creates a window.
DWORD dwThreadID = 0;
HANDLE hThread = CreateThread(NULL,0,ThreadProc,argv[0],0,&dwThreadID);
i want to create a miniature output textbox within my window, which reads the output of the console and displays it, and im guessing i have to do this in the windows procedure somewhere around here.
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
break;
ive found the console functions like ReadConsole() and WriteConsole() on MSDN, but im unsure if these are the kind of thing that im looking for, and im not sure if the threads can even communicate with eachother like that, or how it's possible.
Where should i start?