| 254 | |
| 255 | |
| 256 | void CIniFileLoad::LoadDataIntAngle(CString strSection,CString strKey,int &nYPos,int &nZPos,int &nFocusPos) |
| 257 | { |
| 258 | CString strValue=_T(""); |
| 259 | LoadString(strSection,strKey,strValue); |
| 260 | |
| 261 | |
| 262 | CString strYPos = GetFirstParam(strValue); |
| 263 | CString strZPos = GetFirstParam(strValue); |
| 264 | CString strFocusPos = GetFirstParam(strValue); |
| 265 | if(strYPos.IsEmpty()) |
| 266 | { |
| 267 | nYPos = 0xFFFF; |
| 268 | } |
| 269 | else |
| 270 | { |
| 271 | nYPos = _ttoi(strYPos); |
| 272 | } |
| 273 | if(strZPos.IsEmpty()) |
| 274 | { |
| 275 | nZPos = 0xFFFF; |
| 276 | } |
| 277 | else |
| 278 | { |
| 279 | nZPos = _ttoi(strZPos); |
| 280 | } |
| 281 | if(strFocusPos.IsEmpty()) |
| 282 | { |
| 283 | nFocusPos = 0xFFFF; |
| 284 | } |
| 285 | else |
| 286 | { |
| 287 | nFocusPos = _ttoi(strFocusPos); |
| 288 | } |
| 289 | |
| 290 | } |
| 291 | |
| 292 | CString CIniFileLoad::GetFirstParam(CString &strInfo) |
| 293 | { |
nothing calls this directly
no outgoing calls
no test coverage detected