Constructor ***********************************/
| 35 | Constructor |
| 36 | ***********************************/ |
| 37 | CUH_Control::CUH_Control(){ |
| 38 | |
| 39 | //setup the critical section variable |
| 40 | #ifdef UH_THREADSAFE |
| 41 | InitializeCriticalSection(&m_criticalSection); |
| 42 | #endif |
| 43 | |
| 44 | //logging variables |
| 45 | m_logName = NULL; |
| 46 | m_enableLog = FALSE; |
| 47 | m_timeStampedLog= FALSE; |
| 48 | m_logDay = 0; |
| 49 | m_logMonth = 0; |
| 50 | m_logYear = 0; |
| 51 | m_fileHandle = NULL; |
| 52 | |
| 53 | //window handle |
| 54 | m_hWnd = NULL; |
| 55 | |
| 56 | //display properties |
| 57 | m_textColor = GetSysColor(COLOR_WINDOWTEXT); |
| 58 | m_backColor = GetSysColor(COLOR_WINDOW); |
| 59 | m_alignment = TA_LEFT; |
| 60 | m_margin = 2; |
| 61 | |
| 62 | //setup the font |
| 63 | m_font = NULL; |
| 64 | SetFont(NULL); |
| 65 | |
| 66 | //history list variables |
| 67 | m_historyList = NULL; |
| 68 | m_historyListMaxLen = 0; |
| 69 | m_HLCurrentPosPtr = NULL; |
| 70 | m_HLCurrentPos = -1; |
| 71 | m_HLEndPosPtr = NULL; |
| 72 | m_HLEndPos = -1; |
| 73 | |
| 74 | //scrollbar variables |
| 75 | m_vScrollRange = 0; |
| 76 | m_vScrollPos = 0; |
| 77 | m_hScrollRange = 0; |
| 78 | m_hScrollPos = 0; |
| 79 | m_vScrollPageSize = 0; |
| 80 | m_hScrollPageSize = 0; |
| 81 | |
| 82 | //max line width |
| 83 | m_maxLineWidth = 0; |
| 84 | |
| 85 | //datestamp to string format |
| 86 | m_DateFormatString = NULL; |
| 87 | SetTimeStampFormat(_T("%X")); |
| 88 | } |
| 89 | /********************************** |
| 90 | Destructor |
| 91 | ***********************************/ |
nothing calls this directly
no outgoing calls
no test coverage detected