void CXTPPropertyPageControlNavigator::SizeToPage(AFX_SIZEPARENTPARAMS* pLayout, CSize szClient, CRect& rcPage) { CSize szList(m_szControl.cx, szClient.cy - m_rcNavigatorMargin.top - m_rcNavigatorMargin.bottom); CSize szPage(szClient.cx - szList.cx - 2 * m_rcNavigatorMargin.left - m_rcNavigatorMargin.right, szClient.cy - m_rcNavigatorMargin.top - m_rcNavigatorMargin.bottom); rcPage = CRect(CPoint(szList.cx + 2 * m_rcNavigatorMargin.left, m_rcNavigatorMargin.top), szPage); AfxRepositionWindow(pLayout, GetSafeHwnd(), CRect(m_rcNavigatorMargin.TopLeft(), szList)); }
void CXTPPropertyPageControlNavigator::PageToSize(AFX_SIZEPARENTPARAMS* pLayout, CSize szPage, CRect& rcPage, CSize& szClient) { CSize szList(m_szControl); szList.cy = max(szList.cy, szPage.cy); szClient = CSize(szList.cx + 2 * m_rcNavigatorMargin.left + m_rcNavigatorMargin.right + szPage.cx, szList.cy + m_rcNavigatorMargin.top + m_rcNavigatorMargin.bottom); rcPage = CRect(CPoint(szList.cx + 2 * m_rcNavigatorMargin.left, m_rcNavigatorMargin.top), szPage); AfxRepositionWindow(pLayout, GetSafeHwnd(), CRect(m_rcNavigatorMargin.TopLeft(), szList)); }
void SVResString::loadBatchAddStrings(MAPNODE &objNode) { string szTitle(""), szSetSucc(""), szAffirmDelete(""), szMsg(""), szCancel(""), szAddGroup(""), szClose(""), szList(""), szAddDevice(""), szAddMonitor(""), szEnable(""), szDisable(""), szPaste(""), szRefresh(""); FindNodeValue(objNode, "IDS_Batch_Add", szTitle); FindNodeValue(objNode, "IDS_SetAlertConditionSuccess", szSetSucc); FindNodeValue(objNode, "IDS_AffirmDelete", szAffirmDelete); FindNodeValue(objNode, "IDS_MessagePrompt", szMsg); FindNodeValue(objNode, "IDS_ConfirmCancel", szCancel); FindNodeValue(objNode, "IDS_AddGroup", szAddGroup); FindNodeValue(objNode, "IDS_Right_AddDevice", szAddDevice); FindNodeValue(objNode, "IDS_AddMonitor", szAddMonitor); FindNodeValue(objNode, "IDS_Enable_Monitor", szEnable); FindNodeValue(objNode, "IDS_DisableMonitor", szDisable); FindNodeValue(objNode, "IDS_Close" , szClose); FindNodeValue(objNode, "IDS_Paste" , szPaste); FindNodeValue(objNode, "IDS_Right_Refresh" , szRefresh); FindNodeValue(objNode, "IDS_DownloadList", szList); m_lsResource["IDS_Batch_Add"] = szTitle; m_lsResource["IDS_SetAlertConditionSuccess"] = szSetSucc; m_lsResource["IDS_AffirmDelete"] = szAffirmDelete; m_lsResource["IDS_MessagePrompt"] = szMsg; m_lsResource["IDS_ConfirmCancel"] = szCancel; m_lsResource["IDS_AddGroup"] = szAddGroup; m_lsResource["IDS_Right_AddDevice"] = szAddDevice; m_lsResource["IDS_AddMonitor"] = szAddMonitor; m_lsResource["IDS_Enable_Monitor"] = szEnable; m_lsResource["IDS_DisableMonitor"] = szDisable; m_lsResource["IDS_Close"] = szClose; m_lsResource["IDS_Paste"] = szPaste; m_lsResource["IDS_Right_Refresh"] = szRefresh; m_lsResource["IDS_DownloadList"] = szList; }