Esempio n. 1
0
LOCAL BOOL About_OnSetCursor( HWND hDlg, HWND hWndCursor, UINT codeHitTest,
							UINT msg )
/************************************************************************/
{
    CPoint pt;
    HWND hChild;

    // check for disabled control
    GetCursorPos( &pt );
    if( hChild = MyChildWindowFromPoint( hWndCursor, pt ))
    {
        hWndCursor = hChild;
    }
    return( SetupCursor( hWndCursor, codeHitTest, IDD_ABOUT ));
}
Esempio n. 2
0
BOOL CPPPropertyPage::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
 	CPoint pt;
	HWND hChild, hWndCursor;

	hWndCursor = pWnd->GetSafeHwnd();
	// check for disabled control
	GetCursorPos( &pt );
	if( hChild = MyChildWindowFromPoint( hWndCursor, pt ))
	{
    	hWndCursor = hChild;
	}

	return( SetupCursor( hWndCursor, nHitTest, m_nIDTemplate ) );
}
Esempio n. 3
0
LOCAL BOOL ZoomBox_OnSetCursor(HWND hWnd, HWND hWndCursor, UINT codeHitTest,
							UINT msg)
/************************************************************************/
{
    CPoint pt;
    HWND hChild;

    // check for disabled control
    GetCursorPos( &pt );
    if( hChild = MyChildWindowFromPoint( hWndCursor, pt ))
    {
        hWndCursor = hChild;
    }

    if ( SetupCursor( hWndCursor, codeHitTest, IDD_ZOOMBOX ))
	    return( TRUE );

    return FORWARD_WM_SETCURSOR(hWnd, hWndCursor, codeHitTest, msg,
							    ZoomBox_DefProc);
}