case IDC_BUTTON_CFG_EDIT: ShellExecute(NULL, "open", "notepad.exe", ConfigFile, NULL, SW_SHOWNORMAL); break; /*		case IDC_BUTTON_CFG_DIR: ShellExecute(NULL, "open", ConfigFileOpenDir, NULL, NULL, SW_SHOWNORMAL); break;*/ 
PrefPlayerDialogProc(HWND hwnd, UINT uMess, WPARAM wParam, LPARAM lParam){	static int initflag = 1; 	switch (uMess){	case WM_INITDIALOG:		SetDlgItemText(hwnd,IDC_EDIT_CONFIG_FILE,TEXT(sp_temp->ConfigFile));		{		char buff[64];		sprintf(buff,"%d",sp_temp->SubWindowMax);		SetDlgItemText(hwnd,IDC_EDIT_SUBWINDOW_MAX,TEXT(buff));		}		switch(sp_temp->PlayerLanguage){		case LANGUAGE_ENGLISH:			CheckRadioButton(hwnd,IDC_RADIOBUTTON_JAPANESE,IDC_RADIOBUTTON_ENGLISH,			IDC_RADIOBUTTON_ENGLISH);			break;		default:		case LANGUAGE_JAPANESE:			CheckRadioButton(hwnd,IDC_RADIOBUTTON_JAPANESE,IDC_RADIOBUTTON_ENGLISH,			IDC_RADIOBUTTON_JAPANESE);			break;		}		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECKBOX_AUTOQUIT,								strchr(st_temp->opt_ctl + 1, 'x'));		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECKBOX_AUTOUNIQ,								strchr(st_temp->opt_ctl + 1, 'u'));		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECKBOX_AUTOREFINE,								strchr(st_temp->opt_ctl + 1, 'R'));		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECKBOX_AUTOSTART,								strchr(st_temp->opt_ctl + 1, 'a'));		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECKBOX_NOT_CONTINUE,								strchr(st_temp->opt_ctl + 1, 'C'));		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECKBOX_NOT_DRAG_START,								!strchr(st_temp->opt_ctl + 1, 'd'));		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECKBOX_NOT_LOOPING,								!strchr(st_temp->opt_ctl + 1, 'l'));		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECKBOX_RANDOM,								strchr(st_temp->opt_ctl + 1, 'r'));		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECK_SEACHDIRRECURSIVE,								sp_temp->SeachDirRecursive);		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECK_DOCWNDINDEPENDENT,								sp_temp->DocWndIndependent);		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECK_DOCWNDAUTOPOPUP,								sp_temp->DocWndAutoPopup);		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECK_INIFILE_AUTOSAVE,								sp_temp->IniFileAutoSave);		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECK_AUTOLOAD_PLAYLIST,								sp_temp->AutoloadPlaylist);		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECK_AUTOSAVE_PLAYLIST,								sp_temp->AutosavePlaylist);		DLG_FLAG_TO_CHECKBUTTON(hwnd,IDC_CHECK_POS_SIZE_SAVE,								sp_temp->PosSizeSave);		initflag = 0;		break;	case WM_COMMAND:	switch (LOWORD(wParam)) {		case IDC_BUTTON_CONFIG_FILE:			{				char filename[MAXPATH+1];				filename[0] = '\0';				SendDlgItemMessage(hwnd,IDC_EDIT_CONFIG_FILE,WM_GETTEXT,					(WPARAM)MAX_PATH,(LPARAM)TEXT(filename));				if(!DlgOpenConfigFile(filename,hwnd))				if(filename[0]!='\0')						SetDlgItemText(hwnd,IDC_EDIT_CONFIG_FILE,TEXT(filename));	   }			break;		case IDC_BUTTON_CFG_RELOAD:		{			int i;			for (i = 0; i < PREF_PAGE_MAX; i++ ) {				SendMessage ( pref_pages[i].hwnd, WM_MYSAVE, (WPARAM)0, (LPARAM)0 );			}			reload_cfg();			SetWindowLong(hwnd,	DWL_MSGRESULT, TRUE);		}			break;		case IDC_RADIOBUTTON_JAPANESE:		case IDC_RADIOBUTTON_ENGLISH:			break;		default:		break;	  }		PrefWndSetOK = 1;		break;	case WM_MYSAVE:	{		if ( initflag ) break;		SendDlgItemMessage(hwnd,IDC_EDIT_CONFIG_FILE,WM_GETTEXT,			(WPARAM)MAX_PATH,(LPARAM)TEXT(sp_temp->ConfigFile));		{		char buff[64];		SendDlgItemMessage(hwnd,IDC_EDIT_SUBWINDOW_MAX,WM_GETTEXT,			(WPARAM)60,(LPARAM)TEXT(buff));		sp_temp->SubWindowMax = atoi(buff);		if ( sp_temp->SubWindowMax < 1 )			sp_temp->SubWindowMax = 1;		if ( sp_temp->SubWindowMax > 10 )			sp_temp->SubWindowMax = 10;		}		if(SendDlgItemMessage(hwnd,IDC_RADIOBUTTON_ENGLISH,BM_GETCHECK,0,0)){			sp_temp->PlayerLanguage = LANGUAGE_ENGLISH;		} else if(SendDlgItemMessage(hwnd,IDC_RADIOBUTTON_JAPANESE,BM_GETCHECK,0,0)){			sp_temp->PlayerLanguage = LANGUAGE_JAPANESE;		}	 {	 int flag;		SettingCtlFlag(st_temp, 'x',							DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECKBOX_AUTOQUIT,flag));		SettingCtlFlag(st_temp, 'u',							DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECKBOX_AUTOUNIQ,flag));		SettingCtlFlag(st_temp, 'R',							DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECKBOX_AUTOREFINE,flag));		SettingCtlFlag(st_temp, 'a',							DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECKBOX_AUTOSTART,flag));		SettingCtlFlag(st_temp, 'C',							DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECKBOX_NOT_CONTINUE,flag));		SettingCtlFlag(st_temp, 'd',							!DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECKBOX_NOT_DRAG_START,flag));		SettingCtlFlag(st_temp, 'l',							!DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECKBOX_NOT_LOOPING,flag));		SettingCtlFlag(st_temp, 'r',							DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECKBOX_RANDOM,flag));		}		DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECK_SEACHDIRRECURSIVE,			sp_temp->SeachDirRecursive);		DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECK_DOCWNDINDEPENDENT,			sp_temp->DocWndIndependent);		DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECK_DOCWNDAUTOPOPUP,			sp_temp->DocWndAutoPopup);		DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECK_INIFILE_AUTOSAVE,			sp_temp->IniFileAutoSave);		DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECK_AUTOLOAD_PLAYLIST,			sp_temp->AutoloadPlaylist);		DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECK_AUTOSAVE_PLAYLIST,			sp_temp->AutosavePlaylist);		DLG_CHECKBUTTON_TO_FLAG(hwnd,IDC_CHECK_POS_SIZE_SAVE,			sp_temp->PosSizeSave);		SetWindowLong(hwnd,DWL_MSGRESULT,FALSE);	}		break;	case WM_SIZE:		return FALSE;	case WM_CLOSE:		break;	default:	  break;	}	return FALSE;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/343969151828ce8fb92414cee1b2892f683b6cba/w32g_pref.c/clean/interface/w32g_pref.c