www.pudn.com > News Search3.01.rar > CategoryBar.h
#if !defined(AFX_CATEGORYBAR_H__5F3103E3_E610_11D4_B45A_00104B1269BD__INCLUDED_)
#define AFX_CATEGORYBAR_H__5F3103E3_E610_11D4_B45A_00104B1269BD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CategoryBar.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCategoryBar dialog
class CCategoryBar : public CDialogBar
{
// Construction
public:
void SaveEngineSet();
BOOL GetSearchData(int &m_engineclass, CString &m_strKey);
BOOL GetSearchNewsSet(CString &strKey, CTime &tDate);
int GetCategoryItem();
void AfterStop();
void BeforeSearch();
void AdjustCategoryItem();
CCategoryBar();
~CCategoryBar();
BOOL m_bCurrencyView;
// Dialog Data
//{{AFX_DATA(CCategoryBar)
enum { IDD = IDR_MAINFRAME };
CEdit m_engine;
CStatic m_stEngineKey;
CStatic m_stEngine;
CButton m_chkOut;
CButton m_chkIn;
CTabCtrl m_category;
CStatic m_stTime;
CStatic m_stKey;
CEdit m_key;
CDateTimeCtrl m_date;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCategoryBar)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CImageList m_img;
void AdjustCtrlPos(int cx, int cy);
void OnInitDialogBar();
void ChangeView(int iCategory, BOOL bInit = FALSE);
// Generated message map functions
//{{AFX_MSG(CCategoryBar)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSelchangeTabCategory(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
afx_msg void InitDialogBarHandler(WORD wParam, DWORD lParam);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CATEGORYBAR_H__5F3103E3_E610_11D4_B45A_00104B1269BD__INCLUDED_)