Destructor ***********************************/
| 90 | Destructor |
| 91 | ***********************************/ |
| 92 | CUH_Control::~CUH_Control(){ |
| 93 | |
| 94 | ClearHistory(); |
| 95 | |
| 96 | if(m_font) |
| 97 | DeleteObject(m_font); |
| 98 | |
| 99 | if(m_hWnd != NULL) |
| 100 | DestroyWindow(m_hWnd); |
| 101 | |
| 102 | if(m_DateFormatString != NULL) |
| 103 | delete[] m_DateFormatString; |
| 104 | if(m_logName != NULL) |
| 105 | delete[] m_logName; |
| 106 | |
| 107 | |
| 108 | CloseLog(); |
| 109 | |
| 110 | //release the critical section |
| 111 | #ifdef UH_THREADSAFE |
| 112 | DeleteCriticalSection(&m_criticalSection); |
| 113 | #endif |
| 114 | } |
| 115 | |
| 116 | /********************************** |
| 117 | CreateHistoryWindow |
nothing calls this directly
no outgoing calls
no test coverage detected