LRESULT CALLBACK HotSpot:: WindowProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_SETCURSOR: if (mArmed) { paint(); mArmed = 0; SetTimer (mHwnd, TIMER1, 100, NULL); SendMessage (mParentHwnd, mMessageID, 0, 0); } break; case WM_TIMER: unpaint (); break; default: break; } return DefWindowProc (hwnd, message, wParam, lParam); }
//---------------------------------------------------------------- // Image::TPrivate::~TPrivate // Image::TPrivate::~TPrivate() { unpaint(); }