本文整理汇总了C++中CWinApp::IsKindOf方法的典型用法代码示例。如果您正苦于以下问题:C++ CWinApp::IsKindOf方法的具体用法?C++ CWinApp::IsKindOf怎么用?C++ CWinApp::IsKindOf使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CWinApp
的用法示例。
在下文中一共展示了CWinApp::IsKindOf方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CreateToolTips
void CStartupView::CreateToolTips()
{
// Set tooltip context
// EnableToolTips(TRUE);
if(m_ctrlToolTipsContext !=NULL)
{
ASSERT(m_ctrlToolTipsContext);
return;
}
m_ctrlToolTipsContext = new CXTPToolTipContext();
m_ctrlToolTipsContext->SetModuleToolTipContext();
m_ctrlToolTipsContext->SetStyle(xtpToolTipOffice2007);
m_ctrlToolTipsContext->SetMaxTipWidth(200);
m_ctrlToolTipsContext->ShowTitleAndDescription();
m_ctrlToolTipsContext->ShowImage(TRUE,0);
m_ctrlToolTipsContext->SetMargin(CRect(2, 2, 2, 2));
m_ctrlToolTipsContext->SetDelayTime(TTDT_INITIAL, 900);
m_ctrlToolTipsContext->ShowToolTipAlways();
CRecentFileList *pRecentFileList = NULL;
#ifndef _STUDIO
CWinApp *pApp = AfxGetApp();
if (pApp && pApp->IsKindOf(RUNTIME_CLASS(CAssistantApp)))
{
pRecentFileList = ((CAssistantApp *)pApp)->GetRecentFileList();
}
#endif
if (!pRecentFileList)
return;
for (int i = 0; i < pRecentFileList->m_nSize; ++i)
{
UINT uiRecentFiles[] = { -1,-1,-1,-1,-1, -1,-1,-1,-1,-1, -1,-1,-1,-1,ID_FILE_MRU_FILE1+ i};
m_pImageManager->SetIcons(IDB_SYSTEM_MENU, uiRecentFiles, _countof(uiRecentFiles), CSize(32, 32));
}
UpdateData(TRUE);
}
示例2: CreateShowAgainButton
void CStartupView::CreateShowAgainButton()
{
CRect rcButton;
rcButton.SetRect(0, 0, 280, 30);
CString csTitle;
csTitle.LoadString(ID_VIEW_SHOW_STARTUP_PAGE);
m_btnShowAgain.Create(csTitle, WS_CHILD | WS_VISIBLE | BS_CHECKBOX, rcButton, this, IDC_CHECK_STARTPAGE);
m_btnShowAgain.SetFlatStyle(TRUE);
m_btnShowAgain.SetFont(&m_btnFont);
m_btnShowAgain.SetTheme(xtpButtonThemeStandard);
m_btnShowAgain.SetTransparent(TRUE);
m_btnShowAgain.SetTextAlignment(BS_CENTER);
#ifndef _STUDIO
CWinApp *pApp = AfxGetApp();
if (pApp && pApp->IsKindOf(RUNTIME_CLASS(CAssistantApp)))
{
bool bShowStartupPage = ((CAssistantApp *)pApp)->GetShowStartupPage();
m_btnShowAgain.SetChecked(bShowStartupPage);
}
#endif
}