- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
mylistctrl.h
资源名称:16x.rar [点击查看]
上传用户:aiweisk
上传日期:2007-05-01
资源大小:85k
文件大小:3k
源码类别:
编辑器/阅读器
开发平台:
DOS
- //---------------------------------------------------------------------------------------
- // Quick Hex Shell extension
- // Copyright (c) 2000 by Shanker.C
- // All rights reserved
- // Author's consent required if this program is to be used for commercial purposes
- // No warranty of any kind, expressed or implied, is included with this
- // software; use at your own risk, responsibility for damages (if any) to
- // anyone resulting from the use of this software rests entirely with the user.
- // Please send comments/suggestions/criticisms to: Shanker@xlprint.com
- // March 7, 2000
- //--------------------------------------------------------------------------------
- #ifndef _MYLISTCTRL_H_
- #define _MYLISTCTRL_H_
- //--------------------------------------------------------------------------------
- #include <afxcmn.h>
- //--------------------------------------------------------------------------------
- #define COPY_COMMAND 50000
- //--------------------------------------------------------------------------------
- class CMyListCtrl : public CListCtrl
- {
- public:
- void LoadFile(CString strFile, int nFileSize);
- private:
- int m_nStartCol;
- int m_nStartRow;
- int m_nEndCol;
- int m_nEndRow;
- int m_TopRowStartCol;
- int m_TopRowEndCol;
- int m_BottRowStartCol;
- int m_BottRowEndCol;
- int m_StoreColX;
- int m_nTempEndRow;
- int m_cxChar;
- int m_nColWidth;
- int m_nTopRowCharStartIndex;
- int m_nTopRowCharEndIndex;
- int m_nBottRowCharStartIndex;
- int m_nBottRowCharEndIndex;
- int m_ASCIITopStartCol;
- int m_ASCIITopEndCol;
- int m_ASCIIBottStartCol;
- int m_ASCIIBottEndCol;
- int m_nStartRowStore;
- int m_nEndRowStore;
- int m_nFileSize;
- BOOL m_bLBTN;
- BOOL m_bLesser;
- CString m_strFile;
- FILE* m_fp;
- // White and selection brushes
- CBrush m_brush;
- CBrush m_whbrush;
- protected:
- // Helper functions
- void GetSelFromFile(char* szTemp, const int& nTempSize,
- const int& nStartIndex, const int& nEndIndex, const int& nRow);
- void SetToDots(char* szLine);
- void Reset();
- protected:
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void DrawItem (LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- virtual void PreSubclassWindow();
- DECLARE_MESSAGE_MAP()
- };
- //--------------------------------------------------------------------------------
- #endif //_MYLISTCTRL_H_
- //--------------------------------------------------------------------------------