| 9 | } |
| 10 | |
| 11 | void CNodeText::Update( const PHOTSPOT Spot ) |
| 12 | { |
| 13 | SIZE_T Length; |
| 14 | |
| 15 | StandardUpdate( Spot ); |
| 16 | |
| 17 | if (Spot->Id == 0) |
| 18 | { |
| 19 | m_dwMemorySize = _ttoi( Spot->Text.GetString( ) ); |
| 20 | } |
| 21 | else if (Spot->Id == 1) |
| 22 | { |
| 23 | Length = Spot->Text.GetLength( ) + 1; |
| 24 | if (Length > m_dwMemorySize) |
| 25 | Length = m_dwMemorySize; |
| 26 | ReClassWriteMemory( (LPVOID)Spot->Address, (LPVOID)Spot->Text.GetString( ), Length ); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | NODESIZE CNodeText::Draw( const PVIEWINFO View, int x, int y ) |
| 31 | { |
nothing calls this directly
no test coverage detected