BOOL CIrcInputDlg::OnInitDialog() { CSkinDialog::OnInitDialog(); SkinMe( L"CIrcInputDlg", m_nCaptionIndex == 0 ? ID_IRC_ADD : ( m_bKickOnly ? ID_IRC_KICKWHY : ID_IRC_BANKICKWHY ) ); SelectCaption( this, m_nCaptionIndex ); SelectCaption( &m_wndPrompt, m_nCaptionIndex ); return TRUE; }
BOOL CNewSearchDlg::OnInitDialog() { CSkinDialog::OnInitDialog(); SkinMe( _T("CNewSearchDlg"), IDR_SEARCHFRAME ); SelectCaption( this, m_bLocal ? 2 : ( m_bAgain ? 1 : 0 ) ); CRect rc; CString strText; m_wndSchema.Create( WS_CHILD|WS_VISIBLE|WS_BORDER|WS_TABSTOP, rc, this, IDC_METADATA ); LoadString( strText, IDS_SEARCH_PLAIN_TEXT ); m_wndSchemas.m_sNoSchemaText = strText; m_wndSchemas.Load( Settings.Search.LastSchemaURI ); m_wndSchemas.Select( m_pSearch->m_pSchema ); OnSelChangeSchemas(); if ( m_pSearch->m_pXML ) { m_wndSchema.UpdateData( m_pSearch->m_pXML->GetFirstElement(), FALSE ); } Settings.LoadWindow( _T("NewSearch"), this ); OnCloseUpSchemas(); if ( m_pSearch->m_oSHA1 ) { m_wndSearch.SetWindowText( m_pSearch->m_oSHA1.toUrn() ); m_wndSchema.ShowWindow( SW_HIDE ); } else { m_wndSearch.SetWindowText( m_pSearch->m_sSearch ); } if ( m_wndSchemas.GetCurSel() > 0 ) m_wndSchemas.SetFocus(); return FALSE; }