本文整理汇总了C++中Alert::MakeFocus方法的典型用法代码示例。如果您正苦于以下问题:C++ Alert::MakeFocus方法的具体用法?C++ Alert::MakeFocus怎么用?C++ Alert::MakeFocus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Alert
的用法示例。
在下文中一共展示了Alert::MakeFocus方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DisplayAbout
void Address::DisplayAbout()
{
String cTitle = (String)"About " + (String)PLUGIN_NAME + (String)"...";
String cInfo = (String)"Version: " + (String)PLUGIN_VERSION + (String)"\n\nAuthor: " + (String)PLUGIN_AUTHOR + (String)"\n\nDesc: " + (String)PLUGIN_DESC;
Alert* pcAlert = new Alert(cTitle.c_str(),cInfo.c_str(),m_pcIcon->LockBitmap(),0,"_OK",NULL);
m_pcIcon->UnlockBitmap();
pcAlert->Go(new Invoker());
pcAlert->MakeFocus();
}
示例2: HandleMessage
void DockCamera::HandleMessage(Message* pcMessage)
{
switch (pcMessage->GetCode())
{
case M_CAMERA_ABOUT:
{
String cTitle = (String)"About " + (String)PLUGIN_NAME + (String)"...";
String cInfo = (String)"Version: " + (String)PLUGIN_VERSION + (String)"\n\nAuthor: " + (String)PLUGIN_AUTHOR + (String)"\n\nDesc: " + (String)PLUGIN_DESC;
Alert* pcAlert = new Alert(cTitle.c_str(),cInfo.c_str(),m_pcIcon->LockBitmap(),0,"OK",NULL);
pcAlert->Go(new Invoker());
pcAlert->MakeFocus();
break;
}
case M_PREFS:
{
ShowPrefs(m_pcPlugin->GetPath());
break;
}
case M_PREFS_SEND_TO_PARENT:
{
pcMessage->FindFloat("click",&vClick);
pcMessage->FindFloat("key/instant",&vInstant);
pcMessage->FindFloat("key/delay",&vDelay);
pcMessage->FindFloat("delay",&vDelayTime);
SaveSettings();
LoadSettings();
pcPrefsWin->Close();
pcPrefsWin = NULL;
break;
}
case M_PRINT_SCREEN:
{
if (bFirst)
{
bFirst = false;
}
else
{
pcCameraDelayedLooper->AddTimer(pcCameraDelayedLooper,CAMERA_ID,0);
}
break;
}
}
}