Hi Eros,
the window is created old good Petzold way, so pure Win32 window with callback WndProc.
It is executed approximately various number of times in second on my PC, but it does almost nothing
Processed messages are:
%WM_CREATE
%WM_ERASEBKGND
%WM_MOUSEWHEEL
%WM_SIZE
%WM_MOVE
%WM_CLOSE
%WM_DESTROY
%WM_SYSCOMMAND
So as you see, many of them get processed just once.
The whole WndProc take almost unmeasurable time, and is executed approximately few times a second in ideal case.
Petr
P.S. Following script shows 99% CPU on AMD Sempron 3400+ 64bit
[code=thinbasic]
while 1
wend
[/code]
Bookmarks