| 115 | } |
| 116 | |
| 117 | BOOL CDialogConsole::OnInitDialog( ) |
| 118 | { |
| 119 | CDialogEx::OnInitDialog( ); |
| 120 | |
| 121 | CenterWindow( GetDesktopWindow( ) ); |
| 122 | SetWindowText( m_strWindowTitle ); |
| 123 | |
| 124 | // Create the Scintilla editor |
| 125 | InitialiseEditor( ); |
| 126 | |
| 127 | // Size the editor appropriately |
| 128 | SizeEditor( ); |
| 129 | |
| 130 | // Make temporarily editable |
| 131 | m_Edit.SetReadOnly( FALSE ); |
| 132 | // Print text |
| 133 | m_Edit.SetText( _T( "> [~] Console Initialized" ) ); |
| 134 | // Make read only |
| 135 | m_Edit.SetReadOnly( TRUE ); |
| 136 | |
| 137 | // Set the caret at the top |
| 138 | m_Edit.GoToLine( 0 ); |
| 139 | |
| 140 | m_bInitialized = TRUE; |
| 141 | |
| 142 | return TRUE; // return TRUE unless you set the focus to a control |
| 143 | } |
| 144 | |
| 145 | void CDialogConsole::InitialiseEditor( ) |
| 146 | { |
nothing calls this directly
no test coverage detected