Idle state on a Dialog based App!
-
Is there a way to override OnIdle using a Dialog based app? something like: BOOL MyDialog::OnIdle() { // My code }
-
Is there a way to override OnIdle using a Dialog based app? something like: BOOL MyDialog::OnIdle() { // My code }
The easiest way I found is to handle the WM_KICKIDLE message.
#include afxpriv.h // for WM_KICKIDLE meassage
...
ON_MESSAGE(WM_KICKIDLE, OnIdle)
...
LRESULT CMyDialog::OnIdle(WPARAM, LPARAM)
{
// idle processing codereturn 0;
}
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!