• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ WndForm类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中WndForm的典型用法代码示例。如果您正苦于以下问题:C++ WndForm类的具体用法?C++ WndForm怎么用?C++ WndForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了WndForm类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: OnCloseClicked

static void OnCloseClicked(WndButton* pWnd){
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    bool bIdenti = false;
    getVariables();
    for (unsigned int i=0 ; i < NO_WP_FILES-1; i++)
    {
      if((szWaypointFile[i] != NULL) &&  (_tcslen (szWaypointFile[i])> 0))
      for (unsigned int j=(i+1) ; j < NO_WP_FILES; j++)
      {
        TCHAR tmp[MAX_PATH];
        if((szWaypointFile[j] != NULL) && (_tcslen (szWaypointFile[j])> 0))
        {
		  if(_tcscmp(szWaypointFile[i],szWaypointFile[j])==0)
		  {
		   _sntprintf(tmp, MAX_PATH, _T("%s %u %s %u %s!"), MsgToken(2340), // [email protected]_ "Waypoint Files"
														    i+1,
															MsgToken(2345) , //[email protected]_ "and"
															j+1,
															MsgToken(2346) //[email protected]_ "are identical"
														 );
		    MessageBoxX(  tmp, MsgToken(356),  mbOk) ;  // [email protected]_ "Information"
		    bIdenti = true;
		  }
        }
      }
    }
    if( bIdenti) return ;


    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:LK8000,项目名称:LK8000,代码行数:35,代码来源:dlgWaypointFiles.cpp


示例2: OnEnableClicked

static void OnEnableClicked(WndButton* pWnd)
{

  if (ItemIndex != -1) {
     const size_t i = (FullFlag) ? StrIndex[LowLimit + ItemIndex] : (LowLimit + ItemIndex);
    if ((UpLimit-LowLimit>0)
        && (ItemIndex >= 0)  // JMW fixed bug, was >0
        && (ItemIndex < (UpLimit - LowLimit))) {

      CAirspace *airspace = AirspaceSelectInfo[i].airspace;
      if (airspace) {
          wf->SetTimerNotify(0,NULL);
          LKSound(TEXT("LK_TICK.WAV"));
          CAirspaceManager::Instance().PopupAirspaceDetail(airspace);
      }
    }
  } else {
    if(pWnd) {
      WndForm * pForm = pWnd->GetParentWndForm();
      if(pForm) {
        pForm->SetModalResult(mrCancel);
      }
    }    
  }
}
开发者ID:LK8000,项目名称:LK8000,代码行数:25,代码来源:dlgAirspaceSelect.cpp


示例3: dlgAirspaceShowModal

bool dlgAirspaceShowModal(bool coloredit){

  colormode = coloredit;

  WndForm *wf = dlgLoadFromXML(CallBackTable, ScreenLandscape ? IDR_XML_AIRSPACE_L : IDR_XML_AIRSPACE_P);
  if (!wf) return false;

  WndListFrame* wAirspaceList = (WndListFrame*)wf->FindByName(TEXT("frmAirspaceList"));
  LKASSERT(wAirspaceList!=NULL);
  wAirspaceList->SetBorderKind(BORDERLEFT);
  wAirspaceList->SetEnterCallback(OnAirspaceListEnter);

  WndOwnerDrawFrame* wAirspaceListEntry = (WndOwnerDrawFrame*)wf->FindByName(TEXT("frmAirspaceListEntry"));
  if(wAirspaceListEntry) {
    wAirspaceListEntry->SetCanFocus(true);
  }

  UpdateList(wAirspaceList);

  changed = false;

  wf->ShowModal();

  delete wf;

  return changed;
}
开发者ID:,项目名称:,代码行数:27,代码来源:


示例4: OnSetFrequency

static void OnSetFrequency(WndButton* pWnd){
(void)pWnd;
#ifdef RADIO_ACTIVE
TCHAR Tmp[255];
 if(RadioPara.Enabled)
 {
   double ASFrequency = ExtractFrequency((TCHAR*)airspace_copy.Name());
   if(!ValidFrequency(ASFrequency))
   {
	 ASFrequency = ExtractFrequency((TCHAR*)airspace_copy.Comment());
   }
   if(ValidFrequency(ASFrequency))
   {
     _stprintf(Tmp,_T("%7.3fMHz"),ASFrequency);
     devPutFreqActive(ASFrequency, (TCHAR*)airspace_copy.Name());
     DoStatusMessage(_T(""), Tmp );
   }
 }
#endif  // RADIO_ACTIVE        
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
} 
开发者ID:LK8000,项目名称:LK8000,代码行数:26,代码来源:dlgAirspaceDetails.cpp


示例5: OnCloseClicked

static void OnCloseClicked(WndButton* pWnd) {
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:,项目名称:,代码行数:8,代码来源:


示例6: OnBallastDump

static void OnBallastDump(WndButton* pWnd) {
  BallastTimerActive = !BallastTimerActive;
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:LK8000,项目名称:LK8000,代码行数:9,代码来源:dlgBasicSettings.cpp


示例7: OnCloseClicked

static void OnCloseClicked(WndButton* pWnd) {
  TaskIndex = -1;
  if(pWnd) {
      WndForm * pForm = pWnd->GetParentWndForm();
      if(pForm) {
          pForm->SetModalResult(mrCancel);
      }
  }
}
开发者ID:LK8000,项目名称:LK8000,代码行数:9,代码来源:LoadCupTask.cpp


示例8: OnSIMClicked

static void OnSIMClicked(WndButton* pWnd) {
  RUN_MODE = RUN_SIM;
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:,项目名称:,代码行数:9,代码来源:


示例9: OnMoveClicked

static void OnMoveClicked(WndButton* pWnd){
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
  MapWindow::SetPanTaskEdit(twItemIndex);
}
开发者ID:LK8000,项目名称:LK8000,代码行数:9,代码来源:dlgTaskWaypoint.cpp


示例10: OnCloseClicked

static void OnCloseClicked(WndButton* pWnd) {
  ItemIndex = -1; // to stop FormDown bringing up task details
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:lshachar,项目名称:LK8000,代码行数:9,代码来源:dlgTaskOverview.cpp


示例11: OnOk

static void OnOk(WndButton* pWnd)
{
  PlayResource(TEXT("IDR_WAV_CLICK"));
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:lshachar,项目名称:LK8000,代码行数:10,代码来源:dlgTextEntry_Keyboard.cpp


示例12: OnPILOTClicked

static void OnPILOTClicked(WndButton* pWnd) {
  RUN_MODE = RUN_PILOT;
  LKSound(_T("LK_SLIDE.WAV"));
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:,项目名称:,代码行数:10,代码来源:


示例13: OnWPSCloseClicked

static void OnWPSCloseClicked(WndButton* pWnd){
  ItemIndex = -1;
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrCancel);
    }
  }
  wf->SetTimerNotify(0,NULL);

}
开发者ID:LK8000,项目名称:LK8000,代码行数:11,代码来源:dlgAirspaceSelect.cpp


示例14: OnNickelClick

static void OnNickelClick(WndButton* pWnd) {
  RUN_MODE = RUN_EXIT;
  RestartToNickel = true;
  LKSound(_T("LK_SLIDE.WAV"));
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:,项目名称:,代码行数:11,代码来源:


示例15: OnEXITClicked

static void OnEXITClicked(WndButton* pWnd) {
  RUN_MODE = RUN_EXIT;
#ifdef KOBO
  RestartToNickel = false;
#endif
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:,项目名称:,代码行数:12,代码来源:


示例16: OnFLYClicked

static void OnFLYClicked(WndButton* pWnd) {
  RUN_MODE = RUN_FLY;
  //  Removed 110605: we now run devInit on startup for all devices, and we dont want an immediate and useless reset.
  //  LKForceComPortReset=true;
  PortMonitorMessages = 0;
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:,项目名称:,代码行数:12,代码来源:


示例17: OnMoveBeforeClicked

static void OnMoveBeforeClicked(WndButton* pWnd){
  LockTaskData();
  SwapWaypoint(twItemIndex-1);
  SetWaypointValues();
  UnlockTaskData();
  if(pWnd) {
    WndForm * pForm = pWnd->GetParentWndForm();
    if(pForm) {
      pForm->SetModalResult(mrOK);
    }
  }
}
开发者ID:LK8000,项目名称:LK8000,代码行数:12,代码来源:dlgTaskWaypoint.cpp


示例18: Main

static void
Main()
{
  WndForm *form = LoadDialog(NULL, main_window, xmlfile.c_str());
  if (form == NULL) {
    _ftprintf(stderr, _T("Failed to load resource '%s'\n"), xmlfile.c_str());
    return;
  }

  form->ShowModal();
  delete form;
}
开发者ID:Adrien81,项目名称:XCSoar,代码行数:12,代码来源:RunDialog.cpp


示例19: OnEnterClicked

static void OnEnterClicked(WndButton* pWnd) {
  (void)pWnd;

  if (TaskIndex >= iNO_Tasks) {
      TaskIndex = iNO_Tasks - 1;
  }
  if (TaskIndex >= 0) {
      if(pWnd) {
          WndForm * pForm = pWnd->GetParentWndForm();
          if(pForm) {
              pForm->SetModalResult(mrOK);
          }
      }
  }
}
开发者ID:LK8000,项目名称:LK8000,代码行数:15,代码来源:LoadCupTask.cpp


示例20: SetFormControlEnabled

void
SetFormControlEnabled(WndForm &form, const TCHAR *control_name, bool enabled)
{
  Window *window = form.FindByName(control_name);
  assert(window != NULL);
  window->set_enabled(enabled);
}
开发者ID:macsux,项目名称:XCSoar,代码行数:7,代码来源:Util.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ WndOwnerDrawFrame类代码示例发布时间:2022-05-31
下一篇:
C++ WndButton类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap