LRESULT Options_OnNotify(HWND hwnd, int /* idFrom */, LPNMHDR pnmhdr)
{
    switch (pnmhdr->code)
    {
        case PSN_APPLY:
        {
            // Check to see if the options have changed.  If so, send
            // the appropriate command to the appbar
            BOOL fCheck = (BOOL) Button_GetCheck(GetDlgItem(hwnd, IDC_AUTOHIDE));
            if (s_pOptions->fAutoHide != fCheck)
            {
                if (AppBar_SetAutoHide(s_hwndAppbar, fCheck))
                {
                    s_pOptions->fAutoHide = fCheck;
                }
            }

            // If the Always-On-Top setting has changed update the appbar state
            fCheck = (BOOL) Button_GetCheck(GetDlgItem(hwnd, IDC_ONTOP));
            if (s_pOptions->fOnTop != fCheck)
            {
                s_pOptions->fOnTop = fCheck;
                AppBar_SetAlwaysOnTop(s_hwndAppbar, fCheck);
            }

            SetDlgMsgResult(hwnd, WM_NOTIFY, PSNRET_NOERROR);
            break;
        }
    }

    return 0;
}
Beispiel #2
0
BOOL _EXPORT CALLBACK exportFlistProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    LRESULT lResult;

    CheckDefDlgRecursion(&lpGlobals->bRecursionFlag);
    lResult=exportFlist_DlgProc(hwnd, uMsg, wParam, lParam);
    return(SetDlgMsgResult(hwnd, uMsg, lResult));
}
Beispiel #3
0
/* This function handles the Print dialog.
 */
BOOL EXPORT CALLBACK PrintOutbasketDlg( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )
{
   LRESULT lResult;

   CheckDefDlgRecursion( &fDefDlgEx );
   lResult = PrintOutbasketDlg_DlgProc( hwnd, message, wParam, lParam );
   return( SetDlgMsgResult( hwnd, message, lResult ) );
}
Beispiel #4
0
//************************************************************************
BOOL CNutDropScene::OnSetCursor (HWND hWnd, HWND hWndCursor, UINT codeHitTest, UINT msg)
//************************************************************************
{
	POINT pt;
	GetCursorPos(&pt);
	ScreenToClient(hWnd, &pt);

	// set cursor visibility based on game area
	// only turn off cursor when we have capture
	if ( GetToon() )
	{
		if (PtInRect(&GetToon()->m_rGlobalClip, pt))
		{
			SetCursor(NULL);
			// must set real return value for us to take over the cursor
	   		SetDlgMsgResult(hWnd, WM_SETCURSOR, TRUE);
			return(TRUE);
		}
	}
	return(FALSE);
}
Beispiel #5
0
/* Handles the SortMailFrom dialog.
 */
BOOL EXPORT CALLBACK SortMailFrom( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )
{
   CheckDefDlgRecursion( &fDefDlgEx );
   return( SetDlgMsgResult( hwnd, message, SortMailFrom_DlgProc( hwnd, message, wParam, lParam ) ) );
}
Beispiel #6
0
/* Handles the About dialog.
 */
BOOL EXPORT CALLBACK CmdAboutDlg( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )
{
   CheckDefDlgRecursion( &fDefDlgEx );
   return( SetDlgMsgResult( hwnd, message, CmdAboutDlg_DlgProc( hwnd, message, wParam, lParam ) ) );
}