SrcLinesDlg.h
上传用户:shyhzl888
上传日期:2007-01-07
资源大小:35k
文件大小:2k
源码类别:

行业应用

开发平台:

Visual C++

  1. // SrcLinesDlg.h : header file
  2. //
  3. #if !defined(AFX_SRCLINESDLG_H__BF50A1A8_0588_11D3_8556_B0344DC10001__INCLUDED_)
  4. #define AFX_SRCLINESDLG_H__BF50A1A8_0588_11D3_8556_B0344DC10001__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. //
  9. #include "HyperLink.h"
  10. #include "BtnST.h"
  11. #include "HoverButton.h"
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CSrcLinesDlg dialog
  14. class CSrcLinesDlg : public CDialog
  15. {
  16. // Construction
  17. public:
  18. unsigned long m_lCpp;
  19. unsigned long m_lC;
  20. CSrcLinesDlg(CWnd* pParent = NULL); // standard constructor
  21. ~CSrcLinesDlg ();
  22. // Dialog Data
  23. //{{AFX_DATA(CSrcLinesDlg)
  24. enum { IDD = IDD_SRCLINES_DIALOG };
  25. CHoverButton m_btnC;
  26. CHoverButton    m_btnCpp;
  27. CButtonST m_btnExit;
  28. CButtonST m_btnOpen;
  29. CButtonST m_btnAbout;
  30. DWORD m_lCppLines;
  31. DWORD m_lHeaderLines;
  32. DWORD m_lTotalLines;
  33. CString m_stcSource;
  34. UINT m_nSelected;
  35. //}}AFX_DATA
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CSrcLinesDlg)
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. HICON m_hIcon;
  44. // Generated message map functions
  45. //{{AFX_MSG(CSrcLinesDlg)
  46. virtual BOOL OnInitDialog();
  47. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  48. afx_msg void OnPaint();
  49. afx_msg HCURSOR OnQueryDragIcon();
  50. afx_msg void OnOpenfile();
  51. afx_msg void OnRadiocpp();
  52. afx_msg void OnRadioc();
  53. afx_msg void OnAbout();
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. private:
  57. int RefreshButtons(int nSelected = 0);
  58. UINT nSelected;
  59. void SetupRadioBtns();
  60. void SetupFlatBtns();
  61. CString GetFileExt(LPCTSTR lpszFile);
  62. unsigned long GetFileLines(char* &lpBuf, unsigned long lSize);
  63. void SetupEditCtrls();
  64. };
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_SRCLINESDLG_H__BF50A1A8_0588_11D3_8556_B0344DC10001__INCLUDED_)