Esempio n. 1
0
void
CPrinterSetupWizardSheet::OnContextMenu(CWnd * pWnd, CPoint pos)
{
	DEBUG_UNUSED(pWnd);
	DEBUG_UNUSED(pos);

	CAbout dlg;

	dlg.DoModal();
}
Esempio n. 2
0
//	The shell sends either strings or indexes
//	IE never sends strings
//	The indexes are into an array of my commands
//	So the verb for the first command I added to the menu is always 0x0000
//	Here - because I don't have any submenus - 
//		I can treat the 'verb' as an menu item position	
STDMETHODIMP ExplorerBar::InvokeCommand(LPCMINVOKECOMMANDINFO lpici)
{
	// IE doesn't send string commands
	if (HIWORD(lpici->lpVerb) != 0) return 0;

	CAbout dlg;

	dlg.DoModal();

	return S_OK;
}
Esempio n. 3
0
void CAbout::CreateControls()
{
  CAbout* aboutDialog = this;

  wxBoxSizer* mainSizer = new wxBoxSizer(wxHORIZONTAL);
  aboutDialog->SetSizer(mainSizer);

  wxStaticBitmap* logoBitmap = new wxStaticBitmap(aboutDialog, wxID_STATIC, aboutDialog->GetBitmapResource(L"./graphics/cpane.xpm"), wxDefaultPosition, wxDefaultSize, 0);
  mainSizer->Add(logoBitmap, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

  wxBoxSizer* rightSizer = new wxBoxSizer(wxVERTICAL);
  mainSizer->Add(rightSizer, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

  wxStaticText* versionStaticText = new wxStaticText(aboutDialog, wxID_VERSIONSTR, _("Lumimaja")+L" vx.yy (abcd)", wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT);
  rightSizer->Add(versionStaticText, 0, wxALIGN_LEFT|wxALL, 5);

  wxBoxSizer* visitSiteSizer = new wxBoxSizer(wxHORIZONTAL);
  rightSizer->Add(visitSiteSizer, 0, wxALIGN_LEFT|wxALL, 0);

  wxStaticText* visitSiteStaticTextBegin = new wxStaticText(aboutDialog, wxID_STATIC, _("Please visit the "), wxDefaultPosition, wxDefaultSize, 0);
  visitSiteSizer->Add(visitSiteStaticTextBegin, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

  wxHyperlinkCtrl* visitSiteHyperlinkCtrl = new wxHyperlinkCtrl(aboutDialog, ID_SITEHYPERLINK, _("Lumimaja website"), L"https://samifar.in/", wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE);
  visitSiteSizer->Add(visitSiteHyperlinkCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

  wxStaticText* visitSiteStaticTextEnd = new wxStaticText(aboutDialog, wxID_STATIC, _("See LICENSE for open source details."), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT);
  rightSizer->Add(visitSiteStaticTextEnd, 0, wxALIGN_LEFT|wxALL, 5);

  wxStaticText* copyrightStaticText = new wxStaticText(aboutDialog, wxID_STATIC, _("Copyright © 2003-2016 by Rony Shapiro, 2015-2016 by Sami Farin"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT);
  rightSizer->Add(copyrightStaticText, 0, wxALIGN_LEFT|wxALL, 5);

  m_newVerStatus = new wxTextCtrl(aboutDialog, ID_TEXTCTRL, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY|wxNO_BORDER); //wxSize(aboutDialog->ConvertDialogToPixels(wxSize(120, -1)).x, -1)
  m_newVerStatus->SetBackgroundColour(wxColour(230, 231, 232));
  rightSizer->Add(m_newVerStatus, 0, wxALIGN_LEFT|wxALL|wxEXPAND|wxRESERVE_SPACE_EVEN_IF_HIDDEN, 5);
  m_newVerStatus->Hide();

  wxButton* closeButton = new wxButton(aboutDialog, wxID_CLOSE, _("&Close"), wxDefaultPosition, wxDefaultSize, 0);
  rightSizer->Add(closeButton, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

  const wxString vstring = pwsafeAppName + L" " + pwsafeVersionString;
  versionStaticText->SetLabel(vstring);
}
void CSettingDialog::OnBnClickedButton1()
{
    // TODO: 在此添加控件通知处理程序代码
    CAbout aboutDig ;
    aboutDig.DoModal() ;
}
Esempio n. 5
0
void CFontExplorerApp::OnAppAbout()
   {
    CAbout aboutDlg;
    aboutDlg.DoModal();
   }
Esempio n. 6
0
void CWinFrame::OnAbout(WPARAM wParam, LPARAM lParam, HWND hWnd)
{
	CAbout cb;
	cb.DoModal(this,(LPCTSTR)IDD_ABOUTBOX);
}
void CMFCAppDlg::OnBnClickedButton4()
{
	// TODO:  关于
	CAbout dlg;
	dlg.DoModal();
}
void CCharWin::OnAbout()
{
	CAbout dlg;

	dlg.DoModal(this);
}
Esempio n. 9
0
//---------------------------------------------------------
//
//
void CGameMenu::menuCallback(CCObject * pSender)
{
	int tag = ((CCNode*)( pSender ))->getTag();

	switch( tag )
	{
	case CGAMEMENU_BUTTON_ONLINE:
		{
            
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
            if( 0 == CDevice::CheckNet() )
            {
                CCMessageBox("网络貌似有问题!", "提示");
                return;
            }
#endif
            
			CSaveSence::Show();
            g_iGameMode = 1;
		}
		break;
	case CGAMEMENU_BUTTON_OFFLINE:
		{
			CSaveSence::Show();
            g_iGameMode = 0;
		}
		break;
	case CGAMEMENU_BUTTON_OPTION:
		{
			COption *poption = new COption();
			poption->autorelease();
			addChild( poption );

			EnableButton( false );
		}
		break;
	case CGAMEMENU_BUTTON_ABOUT:
		{
			CAbout *pabout = new CAbout();
			pabout->autorelease();
			addChild( pabout );

			EnableButton( false );

		}
		break;
    case CGAMEMENU_BUTTON_91:
        {
            CNd91Mng::enter91Platform();
        }
        break;
    case 5:
        {
            CNd91Mng::OpenUrl( "https://itunes.apple.com/cn/app/zhao-huan-chuan-shuo-zhi-jing/id594107545");
        }
        break;
	}

	if( CCUserDefault::sharedUserDefault()->getBoolForKey( "sound" ) )
	{
		CocosDenshion::SimpleAudioEngine::sharedEngine()->playEffect("data/audio/buttton.mp3", false);
	}
	//CMiniGameScene::Show();
}