您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ FindWindowById函数代码示例

51自学网 2021-06-01 20:47:11
  C++
这篇教程C++ FindWindowById函数代码示例写得很实用,希望能帮到您。

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

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

示例1: switch

void TruncSilenceDialog::UpdateUI(){   wxWindow *pWnd;   switch (mEffect->mProcessIndex)   {   case 0:      pWnd = FindWindowById(ID_TRUNCATION_DURATION, this);      pWnd->Enable(true);      pWnd = FindWindowById(ID_COMPRESS_FACTOR, this);      pWnd->Enable(false);      break;   case 1:      pWnd = FindWindowById(ID_TRUNCATION_DURATION, this);      pWnd->Enable(false);      pWnd = FindWindowById(ID_COMPRESS_FACTOR, this);      pWnd->Enable(true);   }}
开发者ID:GYGit,项目名称:Audacity,代码行数:19,


示例2: AIModalDialog

CGoToDlg::CGoToDlg(wxWindow* parent) // dialog constructor	: AIModalDialog(parent, -1, _("Go To"),				wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER){	m_nChapter = 0;	m_nVerse = 1;	// This dialog function below is generated in wxDesigner, and defines the controls and sizers	// for the dialog. The first parameter is the parent which should normally be "this".	// The second and third parameters should both be TRUE to utilize the sizers and create the right	// size dialog.	GoToDlgFunc(this, TRUE, TRUE);	// The declaration is: GoToDlgFunc( wxWindow *parent, bool call_fit, bool set_sizer );	bool bOK;	bOK = gpApp->ReverseOkCancelButtonsForMac(this);	bOK = bOK; // avoid warning	m_pSpinCtrlChapter = (wxSpinCtrl*)FindWindowById(IDC_EDIT_CHAPTER);	m_pSpinCtrlVerse = (wxSpinCtrl*)FindWindowById(IDC_EDIT_VERSE);}
开发者ID:eb1,项目名称:adaptit,代码行数:19,


示例3: DoUnfloatPage

void CFrame::DoUnfloatPage(int Id){	wxFrame * Win = (wxFrame*)FindWindowById(Id);	if (!Win) return;	wxWindow * Child = Win->GetChildren().Item(0)->GetData();	Child->Reparent(this);	DoAddPage(Child, g_pCodeWindow->iNbAffiliation[Child->GetId() - IDM_LOG_WINDOW], false);	Win->Destroy();}
开发者ID:BananaMuffinFrenzy,项目名称:dolphin,代码行数:10,


示例4: TransferDataFromWindow

void TruncSilenceDialog::OnDurationChange(wxCommandEvent & event){   // We may even get called during the constructor.   // This test saves us from calling unsafe functions.   if( !IsShown() )      return;   TransferDataFromWindow();   bool bOk =  mEffect->mTruncLongestAllowedSilentMs > 0.9f ;   pWarning->SetLabel( bOk ?       wxT("") :       _("   Duration must be at least 1 millisecond")         );   wxWindow *pWnd;   pWnd = FindWindowById( wxID_OK, this );   pWnd->Enable( bOk );   pWnd = FindWindowById( ID_EFFECT_PREVIEW, this );   pWnd->Enable( bOk );}
开发者ID:ruthmagnus,项目名称:audacity,代码行数:19,


示例5: NetworkContentDownloadStatusWindow

	/**	 * Create a new download window based on a list of content information	 * with flags whether to download them or not.	 * @param infos the list to search in	 */	NetworkContentDownloadStatusWindow() :		cur_id(UINT32_MAX)	{		this->parent = FindWindowById(WC_NETWORK_WINDOW, 1);		_network_content_client.AddCallback(this);		_network_content_client.DownloadSelectedContent(this->total_files, this->total_bytes);		this->InitNested(&_network_content_download_status_window_desc, 0);	}
开发者ID:jemmyw,项目名称:openttd,代码行数:15,


示例6: GetLabelID

void mmCustomData::ClearSettings() const{    for (const auto &field : m_fields)    {        //wxWindowID controlID = GetBaseID() + (wxWindowID)field.FIELDID;        wxWindowID labelID = GetLabelID() + (wxWindowID)field.FIELDID;        wxCheckBox* cb = (wxCheckBox*)FindWindowById(labelID);        if (cb) cb->SetValue(false);    }}
开发者ID:vomikan,项目名称:moneymanagerex,代码行数:10,


示例7: UpdateOSKOriginalText

/** * Updates the original text of the OSK so when the 'parent' changes the * original and you press on cancel you won't get the 'old' original text * but the updated one. * @param parent window that just updated its orignal text * @param button widget number of parent's textbox to update */void UpdateOSKOriginalText(const Window *parent, int button){	OskWindow *osk = dynamic_cast<OskWindow *>(FindWindowById(WC_OSK, 0));	if (osk == NULL || osk->parent != parent || osk->text_btn != button) return;	free(osk->orig_str_buf);	osk->orig_str_buf = stredup(osk->qs->text.buf);	osk->SetDirty();}
开发者ID:J0anJosep,项目名称:OpenTTD,代码行数:17,


示例8: SaveViewportBeforeSaveGame

void SaveViewportBeforeSaveGame(){	const Window *w = FindWindowById(WC_MAIN_WINDOW, 0);	if (w != NULL) {		_saved_scrollpos_x = w->viewport->scrollpos_x;		_saved_scrollpos_y = w->viewport->scrollpos_y;		_saved_scrollpos_zoom = w->viewport->zoom;	}}
开发者ID:blackberry,项目名称:OpenTTD,代码行数:10,


示例9: FindWindowById

void lms_suiteFrame::OnShowModule(wxCommandEvent& event){    wxWindow *item = NULL;    item = FindWindowById(event.GetId());    if(item)    {        panelsManager->GetPane(item).Show();        panelsManager->Update();    }}
开发者ID:limemicro,项目名称:lms6suite,代码行数:10,


示例10: FindWindowById

void SCH_EDIT_FRAME::OnErc( wxCommandEvent& event ){    // See if it's already open...    wxWindow* erc = FindWindowById( ID_DIALOG_ERC, this );    if( erc )        // Bring it to the top if already open.  Dual monitor users need this.        erc->Raise();    else        InvokeDialogERC( this );}
开发者ID:metropt,项目名称:kicad-source-mirror,代码行数:11,


示例11: WXUNUSED

void CKadDlg::OnBnClickedUpdateNodeList(wxCommandEvent& WXUNUSED(evt)){	if ( wxMessageBox( wxString(_("Are you sure you want to download a new nodes.dat file?/n")) +						_("Doing so will remove your current nodes and restart Kademlia connection.")					, _("Continue?"), wxICON_EXCLAMATION | wxYES_NO, this) == wxYES ) {		wxString strURL = dynamic_cast<wxTextCtrl*>(FindWindowById(IDC_NODESLISTURL))->GetValue();		thePrefs::SetKadNodesUrl(strURL);		theApp->UpdateNotesDat(strURL);	}}
开发者ID:tmphuang6,项目名称:amule,代码行数:11,


示例12: getEnteredText

const wxString DialEntryPanel::getEnteredText(){   wxString phoneNumber;    wxComboBox* pCtrl = dynamic_cast<wxComboBox*>(FindWindowById(IDR_DIAL_ENTRY_TEXT, this));    if (pCtrl)    {        phoneNumber = pCtrl->GetValue();    }    return phoneNumber;}
开发者ID:Konnekt,项目名称:lib-sipx,代码行数:11,


示例13: FindWindowById

void CDialogWarnHistory::OnCheck(wxCommandEvent &){  if(m_pButtonNO == NULL)  {    m_pButtonNO = FindWindowById(wxID_NO, this);  }  if(m_pButtonNO != NULL)  {    m_pButtonNO->Enable(!DontShowAgain());  }}
开发者ID:ForensicBioinformatics,项目名称:osiris,代码行数:11,


示例14: FindWindowById

bool cbAuiNotebook::IsFocusStored(wxWindow* page){    wxWindow* win = FindWindowById(m_LastId);    while (win)    {        if (win == page)            return true;        win = win->GetParent();    }    return false;}
开发者ID:WinterMute,项目名称:codeblocks_sf,代码行数:11,


示例15: wxGetColourFromUser

void TAdjuster::OnClick(wxCommandEvent& event){    if (pickers.find(event.GetId()) != pickers.end()) {        TUniform* uniform = pickers[event.GetId()];        wxColour color = uniform->GetColor();        color = wxGetColourFromUser(this, color);        uniform->SetColor(color);        FindWindowById(event.GetId())->SetBackgroundColour(color);    }    event.Skip();}
开发者ID:astojilj,项目名称:astoj_oolongengine,代码行数:12,


示例16: DrawWidget

	virtual void DrawWidget(const Rect &r, int widget) const	{		switch (widget) {			case WID_S_LEFT:				/* Draw the date */				SetDParam(0, ((DateTicks)_date * DAY_TICKS_DAY_LENGTH) + _date_fract);				DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP + 2, STR_WHITE_DATE_WALLCLOCK_LONG, TC_FROMSTRING, SA_HOR_CENTER);				break;			case WID_S_RIGHT: {				/* Draw company money, if any */				const Company *c = Company::GetIfValid(_local_company);				if (c != NULL) {					SetDParam(0, c->money);					DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP + 2, STR_COMPANY_MONEY, TC_FROMSTRING, SA_HOR_CENTER);				}				break;			}			case WID_S_MIDDLE:				/* Draw status bar */				if (this->saving) { // true when saving is active					DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP + 2, STR_STATUSBAR_SAVING_GAME, TC_FROMSTRING, SA_HOR_CENTER);				} else if (_do_autosave) {					DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP + 2, STR_STATUSBAR_AUTOSAVE, TC_FROMSTRING, SA_HOR_CENTER);				} else if (_pause_mode != PM_UNPAUSED) {					DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP + 2, STR_STATUSBAR_PAUSED, TC_FROMSTRING, SA_HOR_CENTER);				} else if (this->ticker_scroll < TICKER_STOP && FindWindowById(WC_NEWS_WINDOW, 0) == NULL && _statusbar_news_item != NULL && _statusbar_news_item->string_id != 0) {					/* Draw the scrolling news text */					if (!DrawScrollingStatusText(_statusbar_news_item, this->ticker_scroll, r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP + 2, r.bottom)) {						InvalidateWindowData(WC_STATUS_BAR, 0, SBI_NEWS_DELETED);						if (Company::IsValidID(_local_company)) {							/* This is the default text */							SetDParam(0, _local_company);							DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP + 2, STR_STATUSBAR_COMPANY_NAME, TC_FROMSTRING, SA_HOR_CENTER);						}					}				} else {					if (Company::IsValidID(_local_company)) {						/* This is the default text */						SetDParam(0, _local_company);						DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP + 2, STR_STATUSBAR_COMPANY_NAME, TC_FROMSTRING, SA_HOR_CENTER);					}				}				if (this->reminder_timeout > 0) {					Dimension icon_size = GetSpriteSize(SPR_UNREAD_NEWS);					DrawSprite(SPR_UNREAD_NEWS, PAL_NONE, r.right - WD_FRAMERECT_RIGHT - icon_size.width, r.top + WD_FRAMERECT_TOP + (int)(FONT_HEIGHT_NORMAL - icon_size.height) / 2);				}				break;		}	}
开发者ID:koreapyj,项目名称:openttd-yapp,代码行数:52,


示例17: if

void CompareDlg::UpdateOkButton() {    bool isValid = false;    const wxString leftPath = m_leftPathCtrl->GetValue();    const wxString rightPath = m_rightPathCtrl->GetValue();    if (!leftPath.empty() && ! rightPath.empty()) {        if (wxDirExists(leftPath) && wxDirExists(rightPath)) isValid = true;        else if (wxFileExists(leftPath) && wxFileExists(rightPath)) isValid = true;    }    wxWindow* okButton = FindWindowById(wxID_OK);    if (okButton) okButton->Enable(isValid);}
开发者ID:haixiaocy,项目名称:e,代码行数:13,


示例18: wxASSERT

void wxCurlTransferDialog::OnPauseResume(wxCommandEvent &WXUNUSED(ev)){    wxASSERT(HasFlag(wxCTDS_CAN_PAUSE));    if (m_pThread->IsRunning())    {        if (HandleCurlThreadError(m_pThread->Pause(), m_pThread))        {            FindWindowById(PauseResumeButtonId)->SetLabel(wxS("Resume"));            if (m_pSpeed)                m_pSpeed->SetLabel(wxS("0 (transfer paused)"));        }    }    else    {        if (HandleCurlThreadError(m_pThread->Resume(), m_pThread))        {            FindWindowById(PauseResumeButtonId)->SetLabel(wxS("Pause"));        }    }}
开发者ID:bdbcat,项目名称:squiddio_pi,代码行数:22,


示例19: FindWindowById

void WizardStartPage::OnRadioSelected(wxCommandEvent &event) {	wxWindow *win = FindWindowById(wxID_FORWARD, GetParent());	wxMessageDialog *dial;	if (m_browseRadio->GetValue()) {		win->SetLabel(wxT("Finish"));		this->UpdateROMPathState();		m_filePicker1->Enable(true);		return;	}	win->SetLabel(wxT("Next >"));	win->Enable(true);	m_filePicker1->Enable(false);}
开发者ID:alberthdev,项目名称:wxwabbitemu,代码行数:13,


示例20: FindWindowById

void EnvironmentSettingsDlg::OnChooseColour(wxCommandEvent& event){    wxColourData data;    wxWindow* sender = FindWindowById(event.GetId());    data.SetColour(sender->GetBackgroundColour());    wxColourDialog dlg(this, &data);    PlaceWindow(&dlg);    if (dlg.ShowModal() == wxID_OK)    {        wxColour colour = dlg.GetColourData().GetColour();        sender->SetBackgroundColour(colour);    }}
开发者ID:stahta01,项目名称:EmBlocks,代码行数:14,


示例21: wxGetApp

/*** This method is responsible for setting everything up in the doc/view framework* and opening the request file for editing in a new notebook tab.* @param path Path to the filename being opened*/void HtMainFrame::DoOpenFile (const wxString &path){   wxDocManager *docm = wxGetApp().doc_manager.get();   // TODO: fazer as checagens no arquivo antes de tentar abrir.   //       Ex: verificar se ele pode ser aberto como leitura/escrita, se o usuário tem permiss
C++ FindWindowEx函数代码示例
C++ FindWindowA函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。