////////////////////////////////////////////////////////////////// // // ItemDlg.h : header file // // Dialog for Shutdown. Handles different pix and strings etc.. // ////////////////////////////////////////////////////////////////// #if !defined(AFX_ITEMDLG_H__39C297A3_2DCF_11D2_B2D4_0020182B97FC__INCLUDED_) #define AFX_ITEMDLG_H__39C297A3_2DCF_11D2_B2D4_0020182B97FC__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #include #include #include "resource.h" #include "PersistPosWindow.h" ///////////////////////////////////////////////////////////////////////////// // CItemDlg dialog class CItemDlg : public CDialogImplEx, // : public CDialogImpl public CPersistPosWindow { // Construction public: CItemDlg(); // standard constructor ~CItemDlg() { if(IsWindow()) DestroyWindow(); } // Used to tick off an item // if bState is false means failed bool CheckOffItem(int nItem, bool bState = true); // Give item a pointer next to it bool SetCurrentItem(int nItem); // Has Cancel Button been pressed bool IsCancelled() { return m_bCancel; }; // Dialog Data enum { IDD = IDD_ITEMDLG }; CListViewCtrl m_ctlItems; // Implementation protected: void CancelItemSelection(); bool m_bCancel; CImageList m_ImageListSmall; HICON m_hIcon; BEGIN_MSG_MAP(CNormalPage) MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) MESSAGE_HANDLER(WM_DESTROY, OnDestroy) NOTIFY_HANDLER(IDC_ITEMS, NM_SETFOCUS, OnSetFocusItems) COMMAND_HANDLER(IDCANCEL, BN_CLICKED, OnCancel) MESSAGE_HANDLER(WM_CLOSE, OnClose) END_MSG_MAP() // Generated message map functions LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); LRESULT OnSetFocusItems(int idCtrl, LPNMHDR pnmh, BOOL& bHandled); }; //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_ITEMDLG_H__39C297A3_2DCF_11D2_B2D4_0020182B97FC__INCLUDED_)