Exemple #1
0
/*
================
rvGEPropertyPage::HandleMessage

Handles all messages that the base property page must handle.
================
*/
int rvGEPropertyPage::HandleMessage ( UINT msg, WPARAM wParam, LPARAM lParam )
{
	switch ( msg )
	{
		case WM_NOTIFY:
			switch (((NMHDR FAR *) lParam)->code)
			{					
				case PSN_APPLY:		
					if ( !Apply ( ) )
					{
						SetWindowLong ( mPage, DWL_MSGRESULT, PSNRET_INVALID );
						return TRUE;
					}
					break;		
					
				case PSN_SETACTIVE:
					SetActive ( );
					break;
					
				case PSN_KILLACTIVE:
					KillActive ( );
					break;	
			}
			break;
	}
	
	return FALSE;
}
/*
================
rvGEPropertyPage::HandleMessage

Handles all messages that the base property page must handle.
================
*/
int rvGEPropertyPage::HandleMessage ( UINT msg, WPARAM wParam, LPARAM lParam )
{
	switch ( msg )
	{
		case WM_NOTIFY:
			switch (((NMHDR FAR *) lParam)->code)
			{
				case PSN_APPLY:
					if ( !Apply ( ) )
					{
						SetWindowLongPtr ( mPage, DWLP_MSGRESULT, PSNRET_INVALID );
						return TRUE;
					}
					break;

				case PSN_SETACTIVE:
					SetActive ( );
					break;

				case PSN_KILLACTIVE:
					KillActive ( );
					break;
			
			}
			break;
		case WM_KEYDOWN:
		case WM_KEYUP:
		case WM_CHAR:
			if (gApp.GetActiveWorkspace())
			{
				return SendMessage(gApp.GetMDIFrame(), msg, wParam, lParam);
			}
			break;
	}

	return FALSE;
}