| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #include "stdafx.h"
- #include "debugger.h"
- #include "debuggerapp.h"
- #include "resource.h"
- #include "prefs.h"
- DebuggerApp debuggerApp;
- DebuggerApp::~DebuggerApp(){
- }
- BOOL DebuggerApp::InitInstance(){
- AfxInitRichEdit();
- main_frame=new MainFrame();
- m_pMainWnd=main_frame;
- RECT rect;
- SystemParametersInfo( SPI_GETWORKAREA,0,&rect,0 );
- int x=rect.left;
- int w=rect.right-x;
- int h=240;
- int y=rect.bottom-h;
- main_frame->Create( 0,"Blitz Debugger",
- WS_OVERLAPPEDWINDOW|WS_CLIPCHILDREN,
- CRect( x,y,x+w,y+h ) );
- main_frame->ShowWindow( SW_SHOW );
- main_frame->UpdateWindow();
- return TRUE;
- }
- int DebuggerApp::ExitInstance(){
- main_frame->DestroyWindow();
- return 0;
- }
- MainFrame *DebuggerApp::mainFrame(){
- return debuggerApp.main_frame;
- }
- Debugger * _cdecl debuggerGetDebugger( void *mod,void *env ){
- debuggerApp.mainFrame()->setRuntime( mod,env );
- return debuggerApp.mainFrame();
- }
|