1 /* -*- Mode: C; tab-width: 4 -*-
3 * Copyright (c) 1997-2004 Apple Computer, Inc. All rights reserved.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #include "PrinterSetupWizardSheet.h"
21 #include "CommonServices.h"
22 #include "UtilTypes.h"
28 using namespace PrinterSetupWizard
;
32 class CSecondPage
: public CPropertyPage
34 DECLARE_DYNAMIC(CSecondPage
)
38 virtual ~CSecondPage();
41 enum { IDD
= IDD_SECOND_PAGE
};
45 void InitBrowseList();
46 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
47 afx_msg BOOL
OnSetCursor(CWnd
* pWnd
, UINT nHitTest
, UINT message
);
48 virtual BOOL
OnSetActive();
49 virtual BOOL
OnKillActive();
55 HTREEITEM m_emptyListItem
;
57 CTreeCtrl m_browseList
;
61 afx_msg
void OnTvnSelchangedBrowseList(NMHDR
*pNMHDR
, LRESULT
*pResult
);
62 afx_msg
void OnNmClickBrowseList(NMHDR
* pNMHDR
, LRESULT
* pResult
);
63 afx_msg
void OnTvnKeyDownBrowseList(NMHDR
* pNMHDR
, LRESULT
* pResult
);
76 OnResolveService( Service
* service
);
81 LoadTextAndDisableWindow( CString
& text
);
84 SetPrinterInformationState( BOOL state
);
86 std::string m_selectedName
;
93 CStatic m_printerInformation
;
95 CStatic m_descriptionLabel
;
97 CStatic m_descriptionField
;
99 CStatic m_locationLabel
;
101 CStatic m_locationField
;