root/apps/windows_mobile/trunk/Smartphone/DottelSP/TelnicMain/OptionList.h
@
21
| Revision 21, 0.9 kB (checked in by root, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | /* |
| 2 | * Copyright (c) 2007 Telnic. All rights reserved. |
| 3 | * |
| 4 | * Filename: OptionList.h |
| 5 | * Project: .tel |
| 6 | * Created: 5/09/07 |
| 7 | * Author: Sunil Kumar |
| 8 | * |
| 9 | * Description: |
| 10 | * Implementation of the Option List custom list view class |
| 11 | */ |
| 12 | #pragma once |
| 13 | |
| 14 | |
| 15 | // COptionList view |
| 16 | |
| 17 | class COptionList : public CListView |
| 18 | { |
| 19 | DECLARE_DYNCREATE(COptionList) |
| 20 | |
| 21 | public: |
| 22 | COptionList(); // constructor |
| 23 | virtual ~COptionList(); // destructor |
| 24 | |
| 25 | public: |
| 26 | #ifdef _DEBUG |
| 27 | virtual void AssertValid() const; |
| 28 | #ifndef _WIN32_WCE |
| 29 | virtual void Dump(CDumpContext& dc) const; |
| 30 | #endif |
| 31 | #endif |
| 32 | |
| 33 | private: |
| 34 | HFONT m_hFont; //Hold the custom font |
| 35 | public: |
| 36 | CString *m_strItems; //pointer to the array of CStrings to draw the list items |
| 37 | |
| 38 | protected: |
| 39 | DECLARE_MESSAGE_MAP() |
| 40 | public: |
| 41 | afx_msg void MeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct); |
| 42 | virtual void DrawItem(LPDRAWITEMSTRUCT /*lpDrawItemStruct*/); |
| 43 | }; |
| 44 | |
| 45 | //End-- |
Note: See TracBrowser
for help on using the browser.








