本文整理汇总了C++中KIniFile::GetInteger2方法的典型用法代码示例。如果您正苦于以下问题:C++ KIniFile::GetInteger2方法的具体用法?C++ KIniFile::GetInteger2怎么用?C++ KIniFile::GetInteger2使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KIniFile
的用法示例。
在下文中一共展示了KIniFile::GetInteger2方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LoadScheme
//--------------------------------------------------------------------------
// 功能:载入窗口的界面方案
//--------------------------------------------------------------------------
void KUiConnectInfo::LoadScheme(const char* pScheme)
{
char Buff[128];
KIniFile Ini;
sprintf(Buff, "%s\\%s", pScheme, SCHEME_INI);
if (Ini.Load(Buff))
{
Init(&Ini, "RuningImgBg");
m_ConfirmBtn.Init(&Ini, "ConfirmBtn");
m_InputPwdWnd.Init(&Ini, "Password");
m_DelRoleBtn.Init(&Ini, "DelRole");
m_DelRoleBgImg.Init(&Ini, "DelRoleBgImg");
m_CancelDelRoleBtn.Init(&Ini, "CancelDelRole");
Ini.GetString("Message", "MsgColor", "0,0,0", Buff, sizeof(Buff));
m_uMsgColor = GetColor(Buff);
Ini.GetString("Message", "MsgBorderColor", "0,0,0", Buff, sizeof(Buff));
m_uMsgBorderColor = GetColor(Buff);
Ini.GetString("Message", "MsgColor2", "0,0,0", Buff, sizeof(Buff));
m_uMsgColor2= GetColor(Buff);
Ini.GetString("Message", "MsgBorderColor2", "0,0,0", Buff, sizeof(Buff));
m_uMsgBorderColor2= GetColor(Buff);
Ini.GetInteger("Message", "ColorChangeInterval", 0, (int*)&m_uMsgColorChangeInterval);
Ini.GetInteger("Message", "Font", 12, &m_nFont);
int x, y, w, h;
Ini.GetInteger2("Message", "Pos", &x, &y);
Ini.GetInteger2("Message", "Size", &w, &h);
m_nTextCentreX = x + w / 2;
m_nTextCentreY = y;
Ini.GetString("RuningImgBg", "LoginBg", "", m_szLoginBg, sizeof(m_szLoginBg));
}
}