Loading ...
Sorry, an error occurred while loading the content.

Confused about WTL CMessageLoop....

Expand Messages
  • Richard B.
    In CMessageLoop::IsIdleMessage(), why do WM_MOUSEMOVE, WM_NCMOUSEMOVE, WM_PAINT, and WM_SYSTIMER not cause idle processing ? -- Best regards, Richard B.
    Message 1 of 2 , May 1, 2009
    • 0 Attachment
      In CMessageLoop::IsIdleMessage(), why do WM_MOUSEMOVE, WM_NCMOUSEMOVE,
      WM_PAINT, and WM_SYSTIMER not cause idle processing ?

      --
      Best regards,
      Richard B.
    • Nikos Bozinis
      ... because there are too many of them and then your program would waste too much CPU just to check idle updates
      Message 2 of 2 , May 5, 2009
      • 0 Attachment
        --- In wtl@yahoogroups.com, "Richard B." <dj_deipotent@...> wrote:
        >
        > In CMessageLoop::IsIdleMessage(), why do WM_MOUSEMOVE, WM_NCMOUSEMOVE,
        > WM_PAINT, and WM_SYSTIMER not cause idle processing ?
        >

        because there are too many of them and then your program would waste too much CPU just to check idle updates
      Your message has been successfully submitted and would be delivered to recipients shortly.