| 4 | #include "CScintillaEdit.h" |
| 5 | |
| 6 | class CNodeFunctionPtr : public CNodeBase |
| 7 | { |
| 8 | public: |
| 9 | CNodeFunctionPtr( ); |
| 10 | CNodeFunctionPtr( CWnd* pParentWindow, ULONG_PTR Address ); |
| 11 | ~CNodeFunctionPtr( ); |
| 12 | |
| 13 | virtual void Update( const PHOTSPOT Spot ); |
| 14 | |
| 15 | virtual ULONG GetMemorySize( ) { return sizeof( void* ); } |
| 16 | |
| 17 | virtual NODESIZE Draw( const PVIEWINFO View, int x, int y ); |
| 18 | |
| 19 | void Initialize( CWnd* pParentWindow, ULONG_PTR Address ); |
| 20 | |
| 21 | inline bool IsInitialized( ) { return (m_pAssemblyWindow != NULL); } |
| 22 | |
| 23 | inline void HideAssemblyWindow( ) |
| 24 | { |
| 25 | if (m_bRedrawNeeded == FALSE) |
| 26 | { |
| 27 | if (m_pAssemblyWindow != NULL) |
| 28 | m_pAssemblyWindow->ShowWindow( SW_HIDE ); |
| 29 | m_bRedrawNeeded = TRUE; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | private: |
| 34 | void DisassembleBytes( ULONG_PTR Address ); |
| 35 | |
| 36 | public: |
| 37 | std::vector<CStringA> m_Assembly; |
| 38 | |
| 39 | private: |
| 40 | CScintillaEdit* m_pAssemblyWindow; |
| 41 | CWnd* m_pParentWindow; |
| 42 | |
| 43 | ULONG m_nLines; |
| 44 | ULONG m_nLongestLine; |
| 45 | |
| 46 | int m_iWidth; |
| 47 | int m_iHeight; |
| 48 | |
| 49 | BOOLEAN m_bRedrawNeeded; |
| 50 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected