Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

83 lines
1.5 KiB

// Copyright (c) 2001 Microsoft Corporation
//
// File: PrintServerPage.cpp
//
// Synopsis: Defines the Printer page of the CYS wizard
//
// History: 02/08/2001 JeffJon Created
#include "pch.h"
#include "resource.h"
#include "InstallationUnitProvider.h"
#include "PrintServerPage.h"
static PCWSTR PRINTSERVER_PAGE_HELP = L"cys.chm::/print_server_role.htm#printsrvprintersdrivers";
PrintServerPage::PrintServerPage()
:
CYSWizardPage(
IDD_PRINT_SERVER_PAGE,
IDS_PRINT_SERVER_TITLE,
IDS_PRINT_SERVER_SUBTITLE,
PRINTSERVER_PAGE_HELP)
{
LOG_CTOR(PrintServerPage);
}
PrintServerPage::~PrintServerPage()
{
LOG_DTOR(PrintServerPage);
}
void
PrintServerPage::OnInit()
{
LOG_FUNCTION(PrintServerPage::OnInit);
CYSWizardPage::OnInit();
Win::Button_SetCheck(GetDlgItem(hwnd, IDC_W2K_RADIO), BST_CHECKED);
}
bool
PrintServerPage::OnSetActive()
{
LOG_FUNCTION(PrintServerPage::OnSetActive);
Win::PropSheet_SetWizButtons(
Win::GetParent(hwnd),
PSWIZB_NEXT | PSWIZB_BACK);
return true;
}
int
PrintServerPage::Validate()
{
LOG_FUNCTION(PrintServerPage::Validate);
int nextPage = -1;
InstallationUnitProvider::GetInstance().GetPrintInstallationUnit().SetClients(
Win::Button_GetCheck(Win::GetDlgItem(hwnd, IDC_ALL_RADIO)));
nextPage = IDD_MILESTONE_PAGE;
LOG(String::format(
L"nextPage = %1!d!",
nextPage));
return nextPage;
}