本文整理汇总了C++中CCANMonitorApp::GetTooltipManager方法的典型用法代码示例。如果您正苦于以下问题:C++ CCANMonitorApp::GetTooltipManager方法的具体用法?C++ CCANMonitorApp::GetTooltipManager怎么用?C++ CCANMonitorApp::GetTooltipManager使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCANMonitorApp
的用法示例。
在下文中一共展示了CCANMonitorApp::GetTooltipManager方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: InitInstance
BOOL CCANMonitorApp::InitInstance()
{
// Begin of Multiple Language support
if ( CMultiLanguage::m_nLocales <= 0 ) // Not detected yet
{
CMultiLanguage::DetectLangID(); // Detect language as user locale
CMultiLanguage::DetectUILanguage(); // Detect language in MUI OS
}
TCHAR szModuleFileName[MAX_PATH]; // Get Module File Name and path
int ret = ::GetModuleFileName(theApp.m_hInstance, szModuleFileName, MAX_PATH);
if ( ret == 0 || ret == MAX_PATH )
{
ASSERT(false);
}
// Load resource-only language DLL. It will use the languages
// detected above, take first available language,
// or you can specify another language as second parameter to
// LoadLangResourceDLL. And try that first.
ghLangInst = CMultiLanguage::LoadLangResourceDLL( szModuleFileName );
if (ghLangInst)
{
AfxSetResourceHandle( ghLangInst );
}
// End of Multiple Language support
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
//InitCommonControls();
// START CHANGES MADE FOR AUTOMATION
CWinAppEx::InitInstance();
// Initialize OLE libraries
if (!AfxOleInit())
{
AfxMessageBox(_("Fail to Intilaize OLE"));
return FALSE;
}
//CoInitializeEx(nullptr, COINIT_MULTITHREADED );
CBusmasterDump dump("BUSMASTER");
// END CHANGES MADE FOR AUTOMATION
// Enable OLE/ActiveX objects support
AfxEnableControlContainer();
InitContextMenuManager();
InitKeyboardManager();
InitTooltipManager();
CMFCToolTipInfo ttParams;
ttParams.m_bVislManagerTheme = TRUE;
theApp.GetTooltipManager()->SetTooltipParams(AFX_TOOLTIP_TYPE_ALL,
RUNTIME_CLASS(CMFCToolTipCtrl), &ttParams);
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need. DEBUG
//#ifdef _AFXDLL
// Enable3dControls(); // Call this when using MFC in a shared DLL
//#else
// Enable3dControlsStatic(); // Call this when linking to MFC statically
//#endif
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey("RBEI-ETAS\\BUSMASTER_v3.1.0");
// START CHANGES MADE FOR AUTOMATION
COleTemplateServer::RegisterAll();
// END CHANGES MADE FOR AUTOMATION
//LoadStdProfileSettings(0); // Load standard INI file options (including MRU)
// Enable drag/drop open
// Enable DDE Execute open
//EnableShellOpen();
//RegisterShellFileTypes(TRUE);
// Display splash screen
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
short shRegServer = -1;
short shUnRegServer = -1;
if (__argc > 1)
{
shRegServer = (short) strcmpi(__targv[1],"/regserver");
shUnRegServer = (short) strcmpi(__targv[1],"/unregserver");
}
// Don't display a new MDI child window during startup
if (cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew
|| cmdInfo.m_nShellCommand == CCommandLineInfo::FileOpen)
{
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
}
// START CHANGES MADE FOR AUTOMATION
if (cmdInfo.m_bRunEmbedded || cmdInfo.m_bRunAutomated)
{
m_bFromAutomation = TRUE;
// return TRUE;
}
//.........这里部分代码省略.........