Пример #1
0
Boolean CBiddingForm::OnAbout(EventType* pEvent, Boolean& bHandled) {

	CAboutDialog frmAbout;
	frmAbout.DoModal();
	
	bHandled = false;
	return true;
}
Пример #2
0
void CMainDialog::OnSysCommand(UINT nID, LPARAM lParam)
{
  if ((nID & 0xFFF0) == IDM_ABOUTBOX) {
    CAboutDialog dialog;
    dialog.DoModal();
  } else {
    CDialog::OnSysCommand(nID, lParam);
  }
}
Пример #3
0
void CTwisterDialog::OnSysCommand(UINT nID, LPARAM lParam) {
	if ((nID & 0xFFF0) == IDM_ABOUT) {
		CAboutDialog dlgAbout;
		dlgAbout.DoModal();
	}
	else {
		CDialog::OnSysCommand(nID, lParam);
	}
}
Пример #4
0
void CBaseDialog::OnSysCommand(UINT nID, LPARAM lParam)
{
    switch ( nID )
    {
        case IDM_ABOUTBOX:
        {
            CAboutDialog  dlgAbout;
            dlgAbout.DoModal();

            break;
        }
        case IDS_HELPDOC:
        {
			//App ICON -> Menu -> Help
			CWnd *pWndPrev, *pWndChild;
			CString str, strHelpTitle;
			str.LoadString(IDS_APPNAME);
			AddPrefixName(str);
			strHelpTitle.Format(_T("%s %s"), str, _T("Help"));
			
			if(pWndPrev = CWnd::FindWindow(NULL, strHelpTitle))
			{
				pWndChild = pWndPrev->GetLastActivePopup();                     
				pWndPrev->ShowWindow(SW_RESTORE);
				pWndChild->SetForegroundWindow();    
			}
			else
			{
				//Press Help button
				
				//CString str = AfxGetApp()->m_pszHelpFilePath;
				//int iPos = str.ReverseFind('\\');    
				CString    strHelpFile;// = str.Left(iPos);
				//strHelpFile += "\\DataCardHelp.chm";
				//strHelpFile = "DataCardHelp.chm";
				strHelpFile=g_SetData.Main_szHelpFile;
				
				CString CInfo;
				if( (_waccess( strHelpFile, 0 )) == -1 )
				{
					CInfo.LoadString(IDS_HELPINFO);
					AfxMessageBox(CInfo);
				}
				
				ShellExecute(NULL, _T("open"),strHelpFile,    NULL, NULL, SW_SHOWNORMAL); 
			}  
            break;
        }
        default:
        {
            CDialog::OnSysCommand(nID, lParam);

            break;
        }
    }
    
}
Пример #5
0
void 
CMainFrame::OnCmdAppAbout(UINT /* wNotifyCode */, int /* wID */, HWND /* hWndCtl */)
{
	CAboutDialog dlg;
	dlg.DoModal();
}
Пример #6
0
void CCCFixDlg::OnAbout() 
{
	CAboutDialog dlgAbout;
	dlgAbout.DoModal();
}
Пример #7
0
void CTemplateSelectDialog::OnTsAbout() 
{
	CAboutDialog dlg;
	dlg.DoModal();
	GetDlgItem(IDC_TS_TREE)->SetFocus();
}
// Display About box.
void CEventHandlerApp::OnAppAbout()
{
	CAboutDialog aboutDialog;
	aboutDialog.DoModal();
}
void CTemplateFileListDialog::OnComAbout() 
{
	CAboutDialog dlg;
	dlg.DoModal();
}
Пример #10
0
void CTwisterDialog::OnAboutButton() 
{
	CAboutDialog dlg;
	dlg.DoModal();	
}
Пример #11
0
bool OnMenuCommand(HWND hWnd, int id)
{
  if (ExecuteFileCommand(id))
    return true;

  switch (id)
  {
    // File
    case IDCLOSE:
      SendMessage(hWnd, WM_ACTIVATE, MAKEWPARAM(WA_INACTIVE, 0), (LPARAM)hWnd);
      SendMessage (hWnd, WM_CLOSE, 0, 0);
      break;
    
    // Edit
    case IDM_EDIT_CUT:
      g_App.EditCut();
      break;
    case IDM_EDIT_COPY:
      g_App.EditCopy();
      break;
    case IDM_EDIT_PASTE:
      g_App.EditPaste();
      break;
    case IDM_SELECT_ALL:
      g_App.SelectAll(true);
      g_App.RefreshStatusBar();
      break;
    case IDM_DESELECT_ALL:
      g_App.SelectAll(false);
      g_App.RefreshStatusBar();
      break;
    case IDM_INVERT_SELECTION:
      g_App.InvertSelection();
      g_App.RefreshStatusBar();
      break;
    case IDM_SELECT:
      g_App.SelectSpec(true);
      g_App.RefreshStatusBar();
      break;
    case IDM_DESELECT:
      g_App.SelectSpec(false);
      g_App.RefreshStatusBar();
      break;
    case IDM_SELECT_BY_TYPE:
      g_App.SelectByType(true);
      g_App.RefreshStatusBar();
      break;
    case IDM_DESELECT_BY_TYPE:
      g_App.SelectByType(false);
      g_App.RefreshStatusBar();
      break;

    //View
    case IDM_VIEW_LARGE_ICONS:
    case IDM_VIEW_SMALL_ICONS:
    case IDM_VIEW_LIST:
    case IDM_VIEW_DETAILS:
    {
      UINT index = id - IDM_VIEW_LARGE_ICONS;
      if (index < 4)
      {
        g_App.SetListViewMode(index);
        /*
        CMenu menu;
        menu.Attach(::GetSubMenu(::GetMenu(hWnd), kMenuIndex_View));
        menu.CheckRadioItem(IDM_VIEW_LARGE_ICONS, IDM_VIEW_DETAILS,
            id, MF_BYCOMMAND);
        */
      }
      break;
    }
    case IDM_VIEW_ARANGE_BY_NAME:
    {
      g_App.SortItemsWithPropID(kpidName);
      break;
    }
    case IDM_VIEW_ARANGE_BY_TYPE:
    {
      g_App.SortItemsWithPropID(kpidExtension);
      break;
    }
    case IDM_VIEW_ARANGE_BY_DATE:
    {
      g_App.SortItemsWithPropID(kpidMTime);
      break;
    }
    case IDM_VIEW_ARANGE_BY_SIZE:
    {
      g_App.SortItemsWithPropID(kpidSize);
      break;
    }
    case IDM_VIEW_ARANGE_NO_SORT:
    {
      g_App.SortItemsWithPropID(kpidNoProperty);
      break;
    }

    case IDM_OPEN_ROOT_FOLDER:
      g_App.OpenRootFolder();
      break;
    case IDM_OPEN_PARENT_FOLDER:
      g_App.OpenParentFolder();
      break;
    case IDM_FOLDERS_HISTORY:
      g_App.FoldersHistory();
      break;
    case IDM_VIEW_REFRESH:
      g_App.RefreshView();
      break;
    case IDM_VIEW_FLAT_VIEW:
      g_App.ChangeFlatMode();
      break;
    case IDM_VIEW_TWO_PANELS:
      g_App.SwitchOnOffOnePanel();
      break;
    case IDM_VIEW_STANDARD_TOOLBAR:
      g_App.SwitchStandardToolbar();
      break;
    case IDM_VIEW_ARCHIVE_TOOLBAR:
      g_App.SwitchArchiveToolbar();
      break;
    case IDM_VIEW_TOOLBARS_SHOW_BUTTONS_TEXT:
      g_App.SwitchButtonsLables();
      break;
    case IDM_VIEW_TOOLBARS_LARGE_BUTTONS:
      g_App.SwitchLargeButtons();
      break;

    // Tools
    case IDM_OPTIONS:
      OptionsDialog(hWnd, g_hInstance);
      break;
          
    case IDM_BENCHMARK:
    {
      CPanel::CDisableTimerProcessing disableTimerProcessing1(g_App.Panels[0]);
      CPanel::CDisableTimerProcessing disableTimerProcessing2(g_App.Panels[1]);
      Benchmark();
      break;
    }
    // Help
    case IDM_HELP_CONTENTS:
      ShowHelpWindow(NULL, kFMHelpTopic);
      break;
    case IDM_ABOUT:
    {
      CAboutDialog dialog;
      dialog.Create(hWnd);
      break;
    }
    default:
    {
      if (id >= kOpenBookmarkMenuID && id <= kOpenBookmarkMenuID + 9)
      {
        g_App.OpenBookmark(id - kOpenBookmarkMenuID);
        return true;
      }
      else if (id >= kSetBookmarkMenuID && id <= kSetBookmarkMenuID + 9)
      {
        g_App.SetBookmark(id - kSetBookmarkMenuID);
        return true;
      }
      return false;
    }
  }
  return true;
}
Пример #12
0
void CDizzyDialog::OnAbout() 
{
	CAboutDialog dlg;
	dlg.DoModal();
}
Пример #13
0
void CCedtApp::OnAppAbout() 
{
	CAboutDialog dlg;
	dlg.DoModal();
}