Пример #1
0
CWizard::CWizard(HWND hWndParent) :
	m_fCentered(FALSE),
	m_pgIntro(hWndParent, &m_wizData),
	m_pgBindType(hWndParent, &m_wizData),
	m_pgSelectDisk(hWndParent, &m_wizData),
	m_pgComplete(hWndParent, &m_wizData),
	CPropertySheetImpl<CWizard>(IDS_BNZ_TITLE, 0, hWndParent)
{
	SetWizardMode();
	m_psh.dwFlags |= PSH_WIZARD97 | PSH_USEPAGELANG;
	SetWatermark(MAKEINTRESOURCE(IDB_WATERMARK256));
	SetHeader(MAKEINTRESOURCE(IDB_BANNER256));

	// StretchWatermark(true);
	AddPage(m_pgIntro);
	AddPage(m_pgBindType);
	AddPage(m_pgSelectDisk);
	AddPage(m_pgComplete);

//	::ZeroMemory(
//		&m_wizData, 
//		sizeof(WIZARD_DATA));
	m_wizData.ppsh = this;
	m_wizData.ppspComplete = &m_pgComplete;

	m_wizData.m_nBindType = NMT_AGGREGATE;
	m_wizData.m_nDiskCount = 2;
}
Пример #2
0
void CSearchPanel::OnSkinChange()
{
	CString strCaption;
	
	LoadString( strCaption, IDS_SEARCH_PANEL_INPUT_CAPTION );
	m_boxSearch.SetCaption( strCaption );
	LoadString( strCaption, IDS_SEARCH_PANEL_RESULTS_CAPTION );
	m_boxResults.SetCaption( strCaption );
	LoadString( strCaption, IDS_SEARCH_PANEL_ADVANCED );
	m_boxAdvanced.SetCaption( strCaption );
	
	SetWatermark( _T("CSearchPanel") );
	SetFooter( _T("CSearchPanel.Footer") );
	
	m_boxSearch.SetWatermark( _T("CSearchInputBox") );
	m_boxSearch.SetCaptionmark( _T("CSearchInputBox.Caption") );
	m_boxSearch.OnSkinChange();

	m_boxAdvanced.SetWatermark( _T("CSearchAdvancedBox") );
	m_boxAdvanced.SetCaptionmark(  _T("CSearchAdvancedBox.Caption") );
	m_boxAdvanced.OnSkinChange();
	
	m_boxSchema.SetWatermark( _T("CSearchSchemaBox") );
	m_boxSchema.SetCaptionmark( _T("CSearchSchemaBox.Caption") );
	
	m_boxResults.SetWatermark( _T("CSearchResultsBox") );
	m_boxResults.SetCaptionmark(  _T("CSearchResultsBox.Caption") );
	
	Invalidate();
}
Пример #3
0
void CCoolMenu::Clear()
{
	// ToDo: Determine if it still crashes inside Windows Shell SetSite() function
	SafeRelease( m_pContextMenuCache );

	SetWatermark( NULL );
	EnableHook( false );
}
Пример #4
0
CWizardSecurityRepeater::CWizardSecurityRepeater(CWnd* pGrandFather, CWnd* pParent) : CNGWizardPage(CWizardSecurityRepeater::IDD, 0, NULL, NULL)
{
	//{{AFX_DATA_INIT(CWizardSecurityRepeater)
	m_iWzAuthRepeater = 0;
	//}}AFX_DATA_INIT
	m_pGrandFather	= pGrandFather;
	m_pParentSheet	= pParent;

	SetWatermark(IDB_BG_SEC_2,	WIZ97_BITMAP_STRETCH);
}
Пример #5
0
CWizardEncWpa::CWizardEncWpa(CWnd* pGrandFather, CWnd* pParent) : CNGWizardPage(CWizardEncWpa::IDD, 0, NULL, NULL)
{
	//{{AFX_DATA_INIT(CWizardEncWpa)
	m_iWzEncryptionWpa = 0;
	m_szWzKeyWpa = _T("");
	//}}AFX_DATA_INIT
	m_pGrandFather	= pGrandFather;
	m_pParentSheet	= pParent;

	SetWatermark(IDB_BG_WEP,	WIZ97_BITMAP_STRETCH);
}
Пример #6
0
void CHomePanel::OnSkinChange()
{
	SetWatermark( _T("CHomePanel") );
	SetFooter( _T("CHomePanel.Footer") );

	m_boxConnection.OnSkinChange();
	m_boxLibrary.OnSkinChange();
	m_boxDownloads.OnSkinChange();
	m_boxUploads.OnSkinChange();
	Update();
	Invalidate();

	// ToDo: Fix need for duplicate code workaround
	m_boxConnection.OnSkinChange();
	m_boxLibrary.OnSkinChange();
	m_boxDownloads.OnSkinChange();
	m_boxUploads.OnSkinChange();
	Update();
	Invalidate();
}
Пример #7
0
void CCanvasUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
{
   if( _tcscmp(pstrName, _T("watermark")) == 0 ) SetWatermark(pstrValue);
   else CContainerUI::SetAttribute(pstrName, pstrValue);
}
Пример #8
0
bool CCanvasUI::SetWatermark(UINT iBitmapRes, int iOrientation)
{
   return SetWatermark(MAKEINTRESOURCE(iBitmapRes), iOrientation);
}
Пример #9
0
CCoolMenu::~CCoolMenu()
{
	SetWatermark( NULL );
	if ( m_bUnhook ) EnableHook( FALSE );
}