这篇教程C++ GetPrivateProfileString函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetPrivateProfileString函数的典型用法代码示例。如果您正苦于以下问题:C++ GetPrivateProfileString函数的具体用法?C++ GetPrivateProfileString怎么用?C++ GetPrivateProfileString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetPrivateProfileString函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: FindCloseBOOL CMcCurveData::ReadCurveData(){ WIN32_FIND_DATA fd; HANDLE handle=FindFirstFile(strfilepath,&fd); if (handle==INVALID_HANDLE_VALUE) { return FALSE; } FindClose(handle); //stroldsection.Format("mc_n%02dl%03du%03d",nNode,nLine,nRtu); stroldsection=strMcename; char szsection[20]; ZeroMemory(szsection,20); GetPrivateProfileSection(stroldsection,szsection,20,strfilepath); if (strlen(szsection)==0) { return FALSE; } gtIcurvearray.RemoveAll(); gtVcurvearray.RemoveAll(); zbIcurvearray.RemoveAll(); zbVcurvearray.RemoveAll(); char szrec[80]; char sz0[20]; char sz1[20]; char sz2[20]; char sz3[20]; char sz4[20]; char sz5[20]; char sz6[20]; char sz7[20]; char sz8[20]; char nUpName[33]; char nDownName[33]; strcpy(nUpName,""); strcpy(nDownName,""); nIprecision=GetPrivateProfileInt(stroldsection,"Iprecision",0,strfilepath); nVprecision=GetPrivateProfileInt(stroldsection,"Vprecision",0,strfilepath); //fImin=GetPrivateProfileInt(stroldsection,"Imin",0,strfilepath); GetPrivateProfileString(stroldsection,"Imin",0,szrec,80,strfilepath); fImin=atof(szrec); //fImax=GetPrivateProfileInt(stroldsection,"Imax",30,strfilepath); GetPrivateProfileString(stroldsection,"Imax",0,szrec,80,strfilepath); fImax=atof(szrec); //fVmin=GetPrivateProfileInt(stroldsection,"Vmin",0,strfilepath); GetPrivateProfileString(stroldsection,"Vmin",0,szrec,80,strfilepath); fVmin=atof(szrec); //fVmax=GetPrivateProfileInt(stroldsection,"Vmax",300,strfilepath); GetPrivateProfileString(stroldsection,"Vmax",0,szrec,80,strfilepath); fVmax=atof(szrec); bgtmode=GetPrivateProfileInt(stroldsection,"gtmode",1,strfilepath); bonlyrealline=GetPrivateProfileInt(stroldsection,"onlyrealline",0,strfilepath); m_realtime_style=GetPrivateProfileInt(stroldsection,"realtime_style",0,strfilepath); nNode=GetPrivateProfileInt(stroldsection,"node",0,strfilepath); nLine=GetPrivateProfileInt(stroldsection,"line",0,strfilepath); nRtu=GetPrivateProfileInt(stroldsection,"rtu",0,strfilepath); GetPrivateProfileString(stroldsection,"UpName","",nUpName,sizeof(char)*32,strfilepath); GetPrivateProfileString(stroldsection,"DownName","",nDownName,sizeof(char)*32,strfilepath); UpName=nUpName; DownName=nDownName; TCurve addTcurve; CString singlecurvekey; int curvecount=GetPrivateProfileInt(stroldsection,"gtIlinecount",0,strfilepath); for (int i=0; i<curvecount; i++) { singlecurvekey.Format("gtIline%d",i); GetPrivateProfileString(stroldsection,singlecurvekey,0,szrec,79,strfilepath); extractstring(szrec,sz0,sz1,sz2,sz3,sz4,sz5,sz6,sz7,sz8); memset(&addTcurve,0,sizeof(TCurve)); addTcurve.ncurvecolor=atoi(sz0); addTcurve.BcurvechannelNO=atoi(sz1); addTcurve.nlinenode=atoi(sz2); addTcurve.nlineline=atoi(sz3); addTcurve.nlinertu=atoi(sz4); addTcurve.Bdot=atoi(sz5); addTcurve.fcurveratio=atof(sz6); addTcurve.Bprecision=atoi(sz7); if (strlen(sz8)>0) strcpy(addTcurve.unit,sz8); gtIcurvearray.Add(addTcurve); } curvecount=GetPrivateProfileInt(stroldsection,"gtVlinecount",0,strfilepath); for (int i=0; i<curvecount; i++) { singlecurvekey.Format("gtVline%d",i); GetPrivateProfileString(stroldsection,singlecurvekey,0,szrec,79,strfilepath); extractstring(szrec,sz0,sz1,sz2,sz3,sz4,sz5,sz6,sz7,sz8); memset(&addTcurve,0,sizeof(TCurve)); //.........这里部分代码省略.........
开发者ID:github188,项目名称:MonitorSystem,代码行数:101,
示例2: GeneralPageDialogProcINT_PTR CALLBACK GeneralPageDialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { int updatestrings = 0; if (msg == WM_INITDIALOG) { wchar_t txt[20]; GetPrivateProfileString(L"General", L"AutoFocus", L"0", txt, ARRAY_SIZE(txt), inipath); Button_SetCheck(GetDlgItem(hwnd,IDC_AUTOFOCUS), _wtoi(txt)?BST_CHECKED:BST_UNCHECKED); GetPrivateProfileString(L"General", L"Aero", L"2", txt, ARRAY_SIZE(txt), inipath); Button_SetCheck(GetDlgItem(hwnd,IDC_AERO), _wtoi(txt)?BST_CHECKED:BST_UNCHECKED); GetPrivateProfileString(L"General", L"InactiveScroll", L"1", txt, ARRAY_SIZE(txt), inipath); Button_SetCheck(GetDlgItem(hwnd,IDC_INACTIVESCROLL), _wtoi(txt)?BST_CHECKED:BST_UNCHECKED); GetPrivateProfileString(L"General", L"MDI", L"0", txt, ARRAY_SIZE(txt), inipath); Button_SetCheck(GetDlgItem(hwnd,IDC_MDI), _wtoi(txt)?BST_CHECKED:BST_UNCHECKED); HWND control = GetDlgItem(hwnd, IDC_LANGUAGE); ComboBox_ResetContent(control); if (l10n == &l10n_ini) { ComboBox_AddString(control, l10n->lang); ComboBox_SetCurSel(control, 0); ComboBox_Enable(control, FALSE); } else { ComboBox_Enable(control, TRUE); int i; for (i=0; i < ARRAY_SIZE(languages); i++) { ComboBox_AddString(control, languages[i]->lang); if (l10n == languages[i]) { ComboBox_SetCurSel(control, i); } } } Button_Enable(GetDlgItem(hwnd,IDC_ELEVATE), vista && !elevated); } else if (msg == WM_COMMAND) { int id = LOWORD(wParam); int event = HIWORD(wParam); HWND control = GetDlgItem(hwnd, id); int val = Button_GetCheck(control); wchar_t txt[10]; if (id == IDC_AUTOFOCUS) { WritePrivateProfileString(L"General", L"AutoFocus", _itow(val,txt,10), inipath); } else if (id == IDC_AUTOSNAP && event == CBN_SELCHANGE) { val = ComboBox_GetCurSel(control); WritePrivateProfileString(L"General", L"AutoSnap", _itow(val,txt,10), inipath); } else if (id == IDC_AERO) { WritePrivateProfileString(L"General", L"Aero", _itow(val,txt,10), inipath); } else if (id == IDC_INACTIVESCROLL) { WritePrivateProfileString(L"General", L"InactiveScroll", _itow(val,txt,10), inipath); } else if (id == IDC_MDI) { WritePrivateProfileString(L"General", L"MDI", _itow(val,txt,10), inipath); } else if (id == IDC_LANGUAGE && event == CBN_SELCHANGE) { int i = ComboBox_GetCurSel(control); if (i == ARRAY_SIZE(languages)) { OpenUrl(L"https://stefansundin.github.io/altdrag/doc/translate.html"); for (i=0; l10n != languages[i]; i++) {} ComboBox_SetCurSel(control, i); } else { l10n = languages[i]; WritePrivateProfileString(L"General", L"Language", l10n->code, inipath); updatestrings = 1; UpdateStrings(); } } else if (id == IDC_AUTOSTART) { SetAutostart(val, 0, 0); Button_Enable(GetDlgItem(hwnd,IDC_AUTOSTART_HIDE), val); Button_Enable(GetDlgItem(hwnd,IDC_AUTOSTART_ELEVATE), val && vista); if (!val) { Button_SetCheck(GetDlgItem(hwnd,IDC_AUTOSTART_HIDE), BST_UNCHECKED); Button_SetCheck(GetDlgItem(hwnd,IDC_AUTOSTART_ELEVATE), BST_UNCHECKED); } } else if (id == IDC_AUTOSTART_HIDE) { int elevate = Button_GetCheck(GetDlgItem(hwnd,IDC_AUTOSTART_ELEVATE)); SetAutostart(1, val, elevate); } else if (id == IDC_AUTOSTART_ELEVATE) { int hide = Button_GetCheck(GetDlgItem(hwnd,IDC_AUTOSTART_HIDE)); SetAutostart(1, hide, val); if (val) { // Don't nag if UAC is disabled, only check if elevated DWORD uac_enabled = 1; if (elevated) { DWORD len = sizeof(uac_enabled); HKEY key; RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"Software//Microsoft//Windows//CurrentVersion//Policies//System", 0, KEY_QUERY_VALUE, &key); RegQueryValueEx(key, L"EnableLUA", NULL, NULL, (LPBYTE)&uac_enabled, &len); RegCloseKey(key); } if (uac_enabled) {//.........这里部分代码省略.........
开发者ID:alex310110,项目名称:altdrag,代码行数:101,
示例3: BlacklistPageDialogProcINT_PTR CALLBACK BlacklistPageDialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { if (msg == WM_INITDIALOG) { wchar_t txt[1000]; GetPrivateProfileString(L"Blacklist", L"ProcessBlacklist", L"", txt, ARRAY_SIZE(txt), inipath); SetDlgItemText(hwnd, IDC_PROCESSBLACKLIST, txt); GetPrivateProfileString(L"Blacklist", L"Blacklist", L"", txt, ARRAY_SIZE(txt), inipath); SetDlgItemText(hwnd, IDC_BLACKLIST, txt); GetPrivateProfileString(L"Blacklist", L"Snaplist", L"", txt, ARRAY_SIZE(txt), inipath); SetDlgItemText(hwnd, IDC_SNAPLIST, txt); } else if (msg == WM_COMMAND) { wchar_t txt[1000]; int control = LOWORD(wParam); if (HIWORD(wParam) == EN_KILLFOCUS) { Edit_GetText(GetDlgItem(hwnd,control), txt, ARRAY_SIZE(txt)); if (control == IDC_PROCESSBLACKLIST) { WritePrivateProfileString(L"Blacklist", L"ProcessBlacklist", txt, inipath); } else if (control == IDC_BLACKLIST) { WritePrivateProfileString(L"Blacklist", L"Blacklist", txt, inipath); } else if (control == IDC_SNAPLIST) { WritePrivateProfileString(L"Blacklist", L"Snaplist", txt, inipath); } UpdateSettings(); } else if (HIWORD(wParam) == STN_CLICKED && control == IDC_FINDWINDOW) { // Get size of workspace int left = GetSystemMetrics(SM_XVIRTUALSCREEN); int top = GetSystemMetrics(SM_YVIRTUALSCREEN); int width = GetSystemMetrics(SM_CXVIRTUALSCREEN); int height = GetSystemMetrics(SM_CYVIRTUALSCREEN); // Create window WNDCLASSEX wnd = { sizeof(WNDCLASSEX), 0, CursorProc, 0, 0, g_hinst, NULL, NULL, (HBRUSH)(COLOR_WINDOW+1), NULL, APP_NAME"-find", NULL }; wnd.hCursor = LoadImage(g_hinst, MAKEINTRESOURCE(IDI_FIND), IMAGE_CURSOR, 0, 0, LR_DEFAULTCOLOR); RegisterClassEx(&wnd); HWND findhwnd = CreateWindowEx(WS_EX_TOOLWINDOW|WS_EX_TOPMOST|WS_EX_LAYERED, wnd.lpszClassName, NULL, WS_POPUP, left, top, width, height, NULL, NULL, g_hinst, NULL); SetLayeredWindowAttributes(findhwnd, 0, 1, LWA_ALPHA); // Almost transparent ShowWindowAsync(findhwnd, SW_SHOWNA); // Hide icon ShowWindowAsync(GetDlgItem(hwnd,IDC_FINDWINDOW), SW_HIDE); } } else if (msg == WM_NOTIFY) { LPNMHDR pnmh = (LPNMHDR)lParam; if (pnmh->code == PSN_SETACTIVE) { // Update text SetDlgItemText(hwnd, IDC_BLACKLIST_BOX, l10n->blacklist_box); SetDlgItemText(hwnd, IDC_PROCESSBLACKLIST_HEADER, l10n->blacklist_processblacklist); SetDlgItemText(hwnd, IDC_BLACKLIST_HEADER, l10n->blacklist_blacklist); SetDlgItemText(hwnd, IDC_SNAPLIST_HEADER, l10n->blacklist_snaplist); SetDlgItemText(hwnd, IDC_BLACKLIST_EXPLANATION, l10n->blacklist_explanation); SetDlgItemText(hwnd, IDC_FINDWINDOW_BOX, l10n->blacklist_findwindow_box); SetDlgItemText(hwnd, IDC_FINDWINDOW_EXPLANATION, l10n->blacklist_findwindow_explanation); } } LinkProc(hwnd, msg, wParam, lParam); return FALSE;}
开发者ID:alex310110,项目名称:altdrag,代码行数:62,
示例4: LogAddTD//004c69a0 -> 100%int CSkillAdditionInfo::Load(LPSTR lpszFileName){ if( lpszFileName == NULL || strcmp(lpszFileName, "") == 0 ) { LogAddTD("[Skill Addition Info] - File load error : File Name Error"); return false; } // ----#ifdef __CUSTOMS__ int Token; this->Init(); // ---- SMDFile = fopen(gDirPath.GetNewPath(lpszFileName), "r"); // ---- if( SMDFile == 0 ) { MsgBox(lMsg.Get(MSGGET(0, 112)), lpszFileName); return false; } // ---- while(true) { Token = GetToken(); // ---- if( Token == END || !strcmp(TokenString, "end") ) { break; } else { int SkillID = TokenNumber; Token = GetToken(); int Level = TokenNumber; // ---- if( Level < 1 ) { Level = 1; } // ---- this->m_SkillUseReqLevel[SkillID] = Level; } } // ---- fclose(SMDFile); // ---- char szFloat[256]; // ---- this->m_SoulBarrierDefenseStart = GetPrivateProfileInt("SkillInfo", "SoulBarrierDefenseStart", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SoulBarrierDefenseDiv1 = GetPrivateProfileInt("SkillInfo", "SoulBarrierDefenseDiv1", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SoulBarrierDefenseDiv2 = GetPrivateProfileInt("SkillInfo", "SoulBarrierDefenseDiv2", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SoulBarrierDefenseMax = GetPrivateProfileInt("SkillInfo", "SoulBarrierDefenseMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SoulBarrierTimeStart = GetPrivateProfileInt("SkillInfo", "SoulBarrierTimeStart", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SoulBarrierTimeDiv = GetPrivateProfileInt("SkillInfo", "SoulBarrierTimeDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SoulBarrierTimeMax = GetPrivateProfileInt("SkillInfo", "SoulBarrierTimeMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_WizardryEnchantDamageDiv = GetPrivateProfileInt("SkillInfo", "WizardryEnchantDamageDiv", 600, gDirPath.GetNewPath(lpszFileName)); GetPrivateProfileString("SkillInfo", "WizardryEnchantDamageFact", "10", szFloat, 5, gDirPath.GetNewPath(lpszFileName)); sscanf(szFloat, "%f", &this->m_WizardryEnchantDamageFact); this->m_WizardryEnchantDamageMax = GetPrivateProfileInt("SkillInfo", "WizardryEnchantDamageMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_WizardryEnchantTime = GetPrivateProfileInt("SkillInfo", "WizardryEnchantTime", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SwellLifeEffectStart = GetPrivateProfileInt("SkillInfo", "SwellLifeEffectStart", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SwellLifeEffectDiv1 = GetPrivateProfileInt("SkillInfo", "SwellLifeEffectDiv1", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SwellLifeEffectDiv2 = GetPrivateProfileInt("SkillInfo", "SwellLifeEffectDiv2", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SwellLifeEffectMax = GetPrivateProfileInt("SkillInfo", "SwellLifeEffectMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SwellLifeTimeStart = GetPrivateProfileInt("SkillInfo", "SwellLifeTimeStart", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SwellLifeTimeDiv = GetPrivateProfileInt("SkillInfo", "SwellLifeTimeDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_SwellLifeTimeMax = GetPrivateProfileInt("SkillInfo", "SwellLifeTimeMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ElfDefenseEffectFact = GetPrivateProfileInt("SkillInfo", "ElfDefenseEffectFact", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ElfDefenseEffectDiv = GetPrivateProfileInt("SkillInfo", "ElfDefenseEffectDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ElfDefenseEffectMax = GetPrivateProfileInt("SkillInfo", "ElfDefenseEffectMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ElfDefenseTime = GetPrivateProfileInt("SkillInfo", "ElfDefenseTime", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ElfAttackEffectFact = GetPrivateProfileInt("SkillInfo", "ElfAttackEffectFact", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ElfAttackEffectDiv = GetPrivateProfileInt("SkillInfo", "ElfAttackEffectDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ElfAttackEffectMax = GetPrivateProfileInt("SkillInfo", "ElfAttackEffectMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ElfAttackTime = GetPrivateProfileInt("SkillInfo", "ElfAttackTime", 600, gDirPath.GetNewPath(lpszFileName)); this->m_CriticalDamageEffectDiv1 = GetPrivateProfileInt("SkillInfo", "CriticalDamageEffectDiv1", 600, gDirPath.GetNewPath(lpszFileName)); this->m_CriticalDamageEffectDiv2 = GetPrivateProfileInt("SkillInfo", "CriticalDamageEffectDiv2", 600, gDirPath.GetNewPath(lpszFileName)); this->m_CriticalDamageEffectMax = GetPrivateProfileInt("SkillInfo", "CriticalDamageEffectMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_CriticalDamageTimeStart = GetPrivateProfileInt("SkillInfo", "CriticalDamageTimeStart", 600, gDirPath.GetNewPath(lpszFileName)); this->m_CriticalDamageTimeDiv = GetPrivateProfileInt("SkillInfo", "CriticalDamageTimeDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_CriticalDamageTimeMax = GetPrivateProfileInt("SkillInfo", "CriticalDamageTimeMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_BerserkerManaIncDiv = GetPrivateProfileInt("SkillInfo", "BerserkerManaIncDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_BerserkerLifeDecDiv = GetPrivateProfileInt("SkillInfo", "BerserkerLifeDecDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_BerserkerTimeStart = GetPrivateProfileInt("SkillInfo", "BerserkerTimeStart", 600, gDirPath.GetNewPath(lpszFileName)); this->m_BerserkerTimeDiv = GetPrivateProfileInt("SkillInfo", "BerserkerTimeDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_BerserkerTimeMax = GetPrivateProfileInt("SkillInfo", "BerserkerTimeMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ReflectEffectStart = GetPrivateProfileInt("SkillInfo", "ReflectEffectStart", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ReflectEffectDiv = GetPrivateProfileInt("SkillInfo", "ReflectEffectDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ReflectEffectMax = GetPrivateProfileInt("SkillInfo", "ReflectEffectMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ReflectTimeStart = GetPrivateProfileInt("SkillInfo", "ReflectTimeStart", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ReflectTimeDiv = GetPrivateProfileInt("SkillInfo", "ReflectTimeDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_ReflectTimeMax = GetPrivateProfileInt("SkillInfo", "ReflectTimeMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_IgnoreDefenseEffectStart = GetPrivateProfileInt("SkillInfo", "IgnoreDefenseEffectStart", 600, gDirPath.GetNewPath(lpszFileName)); this->m_IgnoreDefenseEffectSub = GetPrivateProfileInt("SkillInfo", "IgnoreDefenseEffectSub", 600, gDirPath.GetNewPath(lpszFileName)); this->m_IgnoreDefenseEffectDiv = GetPrivateProfileInt("SkillInfo", "IgnoreDefenseEffectDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_IgnoreDefenseEffectMax = GetPrivateProfileInt("SkillInfo", "IgnoreDefenseEffectMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_IgnoreDefenseTimeStart = GetPrivateProfileInt("SkillInfo", "IgnoreDefenseTimeStart", 600, gDirPath.GetNewPath(lpszFileName)); this->m_IgnoreDefenseTimeDiv = GetPrivateProfileInt("SkillInfo", "IgnoreDefenseTimeDiv", 600, gDirPath.GetNewPath(lpszFileName)); this->m_IgnoreDefenseTimeMax = GetPrivateProfileInt("SkillInfo", "IgnoreDefenseTimeMax", 600, gDirPath.GetNewPath(lpszFileName)); this->m_IncreaseHealthEffectStart = GetPrivateProfileInt("SkillInfo", "IncreaseHealthEffectStart", 600, gDirPath.GetNewPath(lpszFileName)); //.........这里部分代码省略.........
开发者ID:EderRS,项目名称:muOnline-season6,代码行数:101,
示例5: sprintfvoid VNCOptions::Load(char *fname){ for (int i = rfbEncodingRaw; i<= LASTENCODING; i++) { char buf[128]; sprintf(buf, "use_encoding_%d", i); m_UseEnc[i] = readInt(buf, m_UseEnc[i], fname) != 0; } m_PreferredEncoding = readInt("preferred_encoding", m_PreferredEncoding, fname); m_restricted = readInt("restricted", m_restricted, fname) != 0 ; m_ViewOnly = readInt("viewonly", m_ViewOnly, fname) != 0; m_NoStatus = readInt("nostatus", m_NoStatus, fname) != 0; m_NoHotKeys = readInt("nohotkeys", m_NoHotKeys, fname) != 0; m_ShowToolbar = readInt("showtoolbar", m_ShowToolbar, fname) != 0; m_fAutoScaling = readInt("AutoScaling", m_fAutoScaling, fname) != 0; m_FullScreen = readInt("fullscreen", m_FullScreen, fname) != 0; autoDetect = readInt("autoDetect", autoDetect, fname) != 0; m_Use8Bit = readInt("8bit", m_Use8Bit, fname); m_Shared = readInt("shared", m_Shared, fname) != 0; m_SwapMouse = readInt("swapmouse", m_SwapMouse, fname) != 0; m_DeiconifyOnBell = readInt("belldeiconify", m_DeiconifyOnBell, fname) != 0; m_Emul3Buttons = readInt("emulate3", m_Emul3Buttons, fname) != 0; m_JapKeyboard = readInt("JapKeyboard", m_JapKeyboard, fname) != 0; m_Emul3Timeout = readInt("emulate3timeout", m_Emul3Timeout, fname); m_Emul3Fuzz = readInt("emulate3fuzz", m_Emul3Fuzz, fname); m_DisableClipboard = readInt("disableclipboard", m_DisableClipboard, fname) != 0; m_localCursor = readInt("localcursor", m_localCursor, fname); m_scaling = readInt("Scaling", m_scaling, fname) != 0; m_fAutoScaling = readInt("AutoScaling", m_fAutoScaling, fname) != 0; m_scale_num = readInt("scale_num", m_scale_num, fname); m_scale_den = readInt("scale_den", m_scale_den, fname); // Tight specific m_requestShapeUpdates = readInt("cursorshape", m_requestShapeUpdates, fname) != 0; m_ignoreShapeUpdates = readInt("noremotecursor", m_ignoreShapeUpdates, fname) != 0; int level = readInt("compresslevel", -1, fname); if (level != -1) { m_useCompressLevel = true; m_compressLevel = level; } level = readInt("quality", -1, fname); if (level != -1) { m_enableJpegCompression = true; m_jpegQualityLevel = level; } // Modif [email C++ GetPrivateProfileStringA函数代码示例 C++ GetPrivateProfileInt函数代码示例
|