本文整理汇总了C++中WndProperty::SetForeColor方法的典型用法代码示例。如果您正苦于以下问题:C++ WndProperty::SetForeColor方法的具体用法?C++ WndProperty::SetForeColor怎么用?C++ WndProperty::SetForeColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WndProperty
的用法示例。
在下文中一共展示了WndProperty::SetForeColor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dlgLKAirspaceFill
void dlgLKAirspaceFill()
{
if (msg.warnlevel != airspace_copy.WarningLevel()) {
// we can automatically close the dialog when the warning level changes, probably new msg waiting in the queue
dlg->SetModalResult(mrOK);
}
//Fill up dialog data
WndProperty* wp;
WndButton* wb;
wp = (WndProperty*)dlg->FindByName(TEXT("prpReason"));
if (wp) {
switch (msg.event) {
default:
// Normally not show
// LKTOKEN [email protected]_ "Unknown"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case aweNone:
// LKTOKEN [email protected]_ "None"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case aweMovingInsideFly:
// LKTOKEN [email protected]_ "Flying inside FLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case awePredictedLeavingFly:
// LKTOKEN [email protected]_ "Predicted leaving FLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case aweNearOutsideFly:
// LKTOKEN [email protected]_ "Near leaving FLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case aweLeavingFly:
// LKTOKEN [email protected]_ "Leaving FLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case awePredictedEnteringFly:
// LKTOKEN [email protected]_ "Predicted entering FLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case aweEnteringFly:
// LKTOKEN [email protected]_ "Entering FLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case aweMovingOutsideFly:
// LKTOKEN [email protected]_ "Flying outside FLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
// Events for NON-FLY zones
case aweMovingOutsideNonfly:
// LKTOKEN [email protected]_ "Flying outside NOFLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case awePredictedEnteringNonfly:
// LKTOKEN [email protected]_ "Predicted entering NOFLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case aweNearInsideNonfly:
// LKTOKEN [email protected]_ "Near entering NOFLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case aweEnteringNonfly:
// LKTOKEN [email protected]_ "Entering NOFLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case aweMovingInsideNonfly:
// LKTOKEN [email protected]_ "Flying inside NOFLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
case aweLeavingNonFly:
// LKTOKEN [email protected]_ "Leaving NOFLY zone"
wp->SetText(gettext(TEXT("[email protected]_")));
break;
}//sw
switch (airspace_copy.WarningLevel()) {
case awYellow:
wp->SetBackColor(RGB_YELLOW);
wp->SetForeColor(RGB_BLACK);
break;
case awRed:
wp->SetBackColor(RGB_RED);
//.........这里部分代码省略.........