当前位置: 首页>>代码示例>>C++>>正文


C++ WndProperty::SetForeColor方法代码示例

本文整理汇总了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);
//.........这里部分代码省略.........
开发者ID:eonezhang,项目名称:LK8000,代码行数:101,代码来源:dlgLKAirspaceWarning.cpp


注:本文中的WndProperty::SetForeColor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。