MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / OnInitDialog

Method OnInitDialog

ReClass/DialogConsole.cpp:117–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117BOOL 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
145void CDialogConsole::InitialiseEditor( )
146{

Callers

nothing calls this directly

Calls 3

SetReadOnlyMethod · 0.45
SetTextMethod · 0.45
GoToLineMethod · 0.45

Tested by

no test coverage detected