Weee got it working now. Here is snipets of my code if anyone is wondering:
Window 2 (Process the button push who's ID # is 1:
Code:
case WM_COMMAND:
if ( LOWORD (wParam) == 1 )
SendMessage (hMainWin, WM_COMMAND, LOWORD (1), lParam);
return 0;
Window 1 (Display the text):
Code:
case WM_COMMAND:
if ( LOWORD (wParam) == 1)
{
ScrollWindow (hMainWin, 0, -cyChar, &rect, &rect);
hdc = GetDC (hMainWin);
TextOut (hdc, cxChar, cyChar * (rect.bottom / cyChar - 2 ),
szBuffer, wsprintf(szBuffer, TEXT("Here is the text") ));
ReleaseDC (hMainWin, hdc);
}
return 0;
Now on to the next part