| 18 | } |
| 19 | |
| 20 | NODESIZE CNodeClassInstance::Draw( const PVIEWINFO View, int x, int y ) |
| 21 | { |
| 22 | int tx; |
| 23 | NODESIZE DrawSize; |
| 24 | NODESIZE ChildDrawSize; |
| 25 | |
| 26 | if (m_bHidden) |
| 27 | return DrawHidden( View, x, y ); |
| 28 | |
| 29 | DrawSize.x = 0; |
| 30 | DrawSize.y = 0; |
| 31 | |
| 32 | AddSelection( View, 0, y, g_FontHeight ); |
| 33 | AddDelete( View, x, y ); |
| 34 | AddTypeDrop( View, x, y ); |
| 35 | |
| 36 | x = AddOpenClose( View, x, y ); |
| 37 | x = AddIcon( View, x, y, ICON_CLASS, -1, -1 ); |
| 38 | |
| 39 | tx = x; |
| 40 | tx = AddAddressOffset( View, tx, y ); |
| 41 | |
| 42 | tx = AddText( View, tx, y, g_crType, HS_NONE, _T( "Instance " ) ); |
| 43 | tx = AddText( View, tx, y, g_crName, HS_NAME, _T( "%s" ), m_strName ); |
| 44 | tx = AddText( View, tx, y, g_crValue, HS_NONE, _T( "<%s>" ), m_pNode->GetName( ) ); |
| 45 | tx = AddIcon( View, tx, y, ICON_CHANGE, HS_CLICK, HS_CHANGE_X ); |
| 46 | |
| 47 | tx += g_FontWidth; |
| 48 | tx = AddComment( View, tx, y ); |
| 49 | |
| 50 | y += g_FontHeight; |
| 51 | if (m_LevelsOpen[View->Level]) |
| 52 | { |
| 53 | VIEWINFO NewView; |
| 54 | memcpy( &NewView, View, sizeof( NewView ) ); |
| 55 | NewView.Address = View->Address + m_Offset; |
| 56 | NewView.Data = (UCHAR*)((uintptr_t)NewView.Data + m_Offset); |
| 57 | |
| 58 | ChildDrawSize = m_pNode->Draw( &NewView, x, y ); |
| 59 | |
| 60 | y = ChildDrawSize.y; |
| 61 | if (ChildDrawSize.x > DrawSize.x) |
| 62 | { |
| 63 | DrawSize.x = ChildDrawSize.x; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | DrawSize.x = tx; |
| 68 | DrawSize.y = y; |
| 69 | return DrawSize; |
| 70 | } |
nothing calls this directly
no outgoing calls
no test coverage detected