|
From: Tatsuro M. <tma...@ya...> - 2010-02-01 10:19:40
|
Hello
Sorry for delayed reply
At that time, I have completely misled what you said.
--- Benjamin Lindner wrote:
> Not really. It also waits for mouse input.
> That's the reason (I suspect) that the function is written the
> way it is written. It processes mouse events in the else clause
>
> else if (waitResult == WAIT_OBJECT_0+1)
> {
> MSG msg;
>
> while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
> {
> TranslateMessage(&msg);
> DispatchMessage(&msg);
> }
> }
>
> because otherwise you would not be able to zoom.
> However it does not return on mouse input.
> I don't know if it should do so?
You are right. ConsoleGetch(); used in win.trm is described in the winmain.c and include the code you
have described the above. So it is used for only pause for keyboard.
Regards
Tatsuro
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/
|