| 19 | } |
| 20 | |
| 21 | NODESIZE CNodeWCharPtr::Draw( const PVIEWINFO View, int x, int y ) |
| 22 | { |
| 23 | int tx; |
| 24 | NODESIZE DrawSize; |
| 25 | uintptr_t* Data; |
| 26 | |
| 27 | if (m_bHidden) |
| 28 | return DrawHidden( View, x, y ); |
| 29 | |
| 30 | Data = (uintptr_t*)(View->Data + m_Offset); |
| 31 | |
| 32 | AddSelection( View, 0, y, g_FontHeight ); |
| 33 | AddDelete( View, x, y ); |
| 34 | AddTypeDrop( View, x, y ); |
| 35 | //AddAdd(View, x, y); |
| 36 | |
| 37 | tx = x + TXOFFSET; |
| 38 | tx = AddIcon( View, tx, y, ICON_INTEGER, HS_NONE, HS_NONE ); |
| 39 | tx = AddAddressOffset( View, tx, y ); |
| 40 | tx = AddText( View, tx, y, g_crType, HS_NONE, _T( "PWCHAR " ) ); |
| 41 | tx = AddText( View, tx, y, g_crName, HS_NAME, m_strName ); |
| 42 | |
| 43 | //tx = AddText(View,tx,y,g_crName,HS_NONE," = "); |
| 44 | //tx = AddText(View,tx,y,g_crValue,0,"%lli",pMemory[0]) + FontWidth; |
| 45 | //tx = AddComment(View,tx,y); |
| 46 | |
| 47 | /* |
| 48 | tx = x + 16; |
| 49 | tx = AddIcon(View,tx,y,ICON_TEXT,HS_NONE,HS_NONE); |
| 50 | tx = AddAddressOffset(View,tx,y); |
| 51 | tx = AddText(View,tx,y,g_crType,HS_NONE,"Text "); |
| 52 | tx = AddText(View,tx,y,g_crName,69,"%s",m_strName); |
| 53 | tx = AddText(View,tx,y,g_crIndex,HS_NONE,"["); |
| 54 | tx = AddText(View,tx,y,g_crIndex,0,"%i",memsize); |
| 55 | tx = AddText(View,tx,y,g_crIndex,HS_NONE,"]"); |
| 56 | */ |
| 57 | |
| 58 | tx = AddText( View, tx, y, g_crChar, HS_NONE, _T( " = '" ) ); |
| 59 | if (VALID( Data )) |
| 60 | { |
| 61 | CStringW MemoryString = ReadMemoryStringW( *Data, 128 ); |
| 62 | tx = AddText( View, tx, y, g_crChar, 1, "%ls", MemoryString.GetBuffer( ) ); |
| 63 | } |
| 64 | |
| 65 | tx = AddText( View, tx, y, g_crChar, HS_NONE, _T( "' " ) ) + g_FontWidth; |
| 66 | tx = AddComment( View, tx, y ); |
| 67 | |
| 68 | DrawSize.x = tx; |
| 69 | DrawSize.y = y + g_FontHeight; |
| 70 | return DrawSize; |
| 71 | } |
nothing calls this directly
no test coverage detected