BOOL PFOperatorSimpleSpeedDlgProc::DlgProc(TimeValue t, IParamMap2* map, HWND hWnd,
											UINT msg, WPARAM wParam, LPARAM lParam)
{
	switch(msg) {
		case WM_INITDIALOG:
			SetCtlByDir(map, hWnd);
			break;
		case WM_DESTROY:
			break;
		case WM_COMMAND:
			switch(LOWORD(wParam)) {
				case IDC_DIRECTION:
					switch(HIWORD(wParam)) {
						case CBN_SELCHANGE:
							SetCtlByDir(map, hWnd);
							break;
					}
					break;
				case IDC_NEW:
					map->GetParamBlock()->NotifyDependents(FOREVER, PART_OBJ, kSimpleSpeed_RefMsg_NewRand);
					break;
			}
			break;
	}

	return FALSE;
}
INT_PTR PFOperatorSimpleOrientationDlgProc::DlgProc(TimeValue t, IParamMap2* map, HWND hWnd,
											UINT msg, WPARAM wParam, LPARAM lParam)
{
	switch(msg) {
		case WM_INITDIALOG:
			// Send the message to notify the initialization of dialog
			map->GetParamBlock()->NotifyDependents( FOREVER, (PartID)map, kSimpleOrientation_RefMsg_Init );
			break;
		case WM_DESTROY:
			break;
		case WM_COMMAND:
			switch(LOWORD(wParam)) {
				case IDC_NEW:
					map->GetParamBlock()->NotifyDependents(FOREVER, PART_OBJ, kSimpleOrientation_RefMsg_NewRand);
					break;
				case kSimpleOrientation_message_update:
					SetCtlByDir(map, hWnd);
					break;
			}
			break;
	}

	return FALSE;
}