本文整理汇总了C++中WndForm类的典型用法代码示例。如果您正苦于以下问题:C++ WndForm类的具体用法?C++ WndForm怎么用?C++ WndForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WndForm类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
}
示例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);
}
}
}
}
示例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;
}
示例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);
}
}
}
示例5: OnCloseClicked
static void OnCloseClicked(WndButton* pWnd) {
if(pWnd) {
WndForm * pForm = pWnd->GetParentWndForm();
if(pForm) {
pForm->SetModalResult(mrOK);
}
}
}
示例6: OnBallastDump
static void OnBallastDump(WndButton* pWnd) {
BallastTimerActive = !BallastTimerActive;
if(pWnd) {
WndForm * pForm = pWnd->GetParentWndForm();
if(pForm) {
pForm->SetModalResult(mrOK);
}
}
}
示例7: OnCloseClicked
static void OnCloseClicked(WndButton* pWnd) {
TaskIndex = -1;
if(pWnd) {
WndForm * pForm = pWnd->GetParentWndForm();
if(pForm) {
pForm->SetModalResult(mrCancel);
}
}
}
示例8: OnSIMClicked
static void OnSIMClicked(WndButton* pWnd) {
RUN_MODE = RUN_SIM;
if(pWnd) {
WndForm * pForm = pWnd->GetParentWndForm();
if(pForm) {
pForm->SetModalResult(mrOK);
}
}
}
示例9: OnMoveClicked
static void OnMoveClicked(WndButton* pWnd){
if(pWnd) {
WndForm * pForm = pWnd->GetParentWndForm();
if(pForm) {
pForm->SetModalResult(mrOK);
}
}
MapWindow::SetPanTaskEdit(twItemIndex);
}
示例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);
}
}
}
示例11: OnOk
static void OnOk(WndButton* pWnd)
{
PlayResource(TEXT("IDR_WAV_CLICK"));
if(pWnd) {
WndForm * pForm = pWnd->GetParentWndForm();
if(pForm) {
pForm->SetModalResult(mrOK);
}
}
}
示例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);
}
}
}
示例13: OnWPSCloseClicked
static void OnWPSCloseClicked(WndButton* pWnd){
ItemIndex = -1;
if(pWnd) {
WndForm * pForm = pWnd->GetParentWndForm();
if(pForm) {
pForm->SetModalResult(mrCancel);
}
}
wf->SetTimerNotify(0,NULL);
}
示例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);
}
}
}
示例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);
}
}
}