		case IDSAVE:
		{
			int size = SendMessage(hEdit1, WM_GETTEXTLENGTH, 0, 0);
			std::wstring BuffStr;
			BuffStr.resize(size);
			GetWindowText(hEdit1, &BuffStr[0], size+1);
			bool flag = GetSaveFileName(&ofn);
			std::wofstream outFile(ofn.lpstrFile, std::ios_base::binary);
			outFile.write(&BuffStr[0], size+1);
			outFile.close();
			return true;
		}