//Copyright (c) 1997-2000 Microsoft Corporation #include "pch.hxx" // pch #pragma hdrstop #include "resource.h" #include "pgLokPrv.h" CLookPreviewPg::CLookPreviewPg( LPPROPSHEETPAGE ppsp, int dwPageId, int nIdTitle, int nIdSubTitle, int nIdValueString ) : WizardPage(ppsp, nIdTitle, nIdSubTitle) { m_dwPageId = dwPageId; ppsp->pszTemplate = MAKEINTRESOURCE(m_dwPageId); m_nIdValueString = nIdValueString; m_nCountValues = 0; m_nCurValueIndex = 0; m_nOrigValueIndex = 0; m_hwndSlider = 0; m_hwndListBox = 0; } CLookPreviewPg::~CLookPreviewPg( VOID ) { } #include "LookPrev.h" void PASCAL Look_RebuildSysStuff(BOOL fInit); void SetMyNonClientMetrics(LPNONCLIENTMETRICS lpncm); LRESULT CLookPreviewPg::OnInitDialog( HWND hwnd, WPARAM wParam, LPARAM lParam ) { SendMessage(GetDlgItem(m_hwnd, IDC_LOOKPREV), LPM_RECALC, 0, 0); SendMessage(GetDlgItem(m_hwnd, IDC_LOOKPREV), LPM_REPAINT, 0, 0); LoadValueArray(); m_hwndListBox = GetDlgItem(m_hwnd, IDC_PREVLIST); // Get the initial value for the type of preview we are doing int nCurrentSize = GetCurrentValue(NULL/*&g_Options.m_schemePreview.m_ncm*/); // Find next larger for(int i=m_nCountValues - 1;i>=0;i--) { if(m_rgnValues[i] >= nCurrentSize) m_nCurValueIndex = i; else break; } m_nOrigValueIndex = m_nCurValueIndex; // Initialize the high contrast colors listbox for(i=0;i