localObjet->WExpose();
localObjet->Redraw();
return 0l;
- break;
}
default:
else
return(DefMDIChildProc(hWnd, wMsg, wParam, lParam));
}
- return (0l);
}
** Enter the application message-polling loop. This is the anchor for
** the application.
*/
- if(Draw_IsConsoleSubsystem)
-
- hWndFrame = NULL;
-
- else if (hWndFrame = CreateAppWindow(hInst))
+ hWndFrame = !Draw_IsConsoleSubsystem ? CreateAppWindow (hInst) : NULL;
+ if (hWndFrame != NULL)
{
ShowWindow(hWndFrame,nShow);
UpdateWindow(hWndFrame);
static DWORD WINAPI readStdinThreadFunc(VOID)
{
if (!Draw_IsConsoleSubsystem) return 1;
-
for(;;) {
while (console_semaphore != WAIT_CONSOLE_COMMAND)
Sleep(100);
- //if (gets(console_command))
- if (fgets(console_command,COMMAND_SIZE,stdin))
+ if (fgets(console_command,COMMAND_SIZE,stdin))
{
console_semaphore = HAS_CONSOLE_COMMAND;
}
-
}
- return 0;
}
/*--------------------------------------------------------*\