예제 #1
0
파일: hotspot.cpp 프로젝트: kentstork/osiva
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);

}
예제 #2
0
//----------------------------------------------------------------
// Image::TPrivate::~TPrivate
//
Image::TPrivate::~TPrivate()
{
    unpaint();
}