[Debugger] Move CCommandList::Attach in to Debugger-Commands.cpp
This commit is contained in:
parent
769b279537
commit
415c97080a
|
@ -19,6 +19,29 @@
|
||||||
|
|
||||||
#include <Project64-core/N64System/Mips/OpCodeName.h>
|
#include <Project64-core/N64System/Mips/OpCodeName.h>
|
||||||
|
|
||||||
|
void CCommandList::Attach(HWND hWndNew)
|
||||||
|
{
|
||||||
|
CListViewCtrl::Attach(hWndNew);
|
||||||
|
|
||||||
|
ModifyStyle(LVS_OWNERDRAWFIXED, 0, 0);
|
||||||
|
SetExtendedListViewStyle(LVS_EX_FULLROWSELECT | LVS_EX_DOUBLEBUFFER | LVS_EX_LABELTIP);
|
||||||
|
|
||||||
|
AddColumn("", COL_ARROWS);
|
||||||
|
SetColumnWidth(COL_ARROWS, 30);
|
||||||
|
|
||||||
|
AddColumn("Address", COL_ADDRESS);
|
||||||
|
SetColumnWidth(COL_ADDRESS, 65);
|
||||||
|
|
||||||
|
AddColumn("Command", COL_COMMAND);
|
||||||
|
SetColumnWidth(COL_COMMAND, 60);
|
||||||
|
|
||||||
|
AddColumn("Parameters", COL_PARAMETERS);
|
||||||
|
SetColumnWidth(COL_PARAMETERS, 120);
|
||||||
|
|
||||||
|
AddColumn("Symbol", COL_SYMBOL);
|
||||||
|
SetColumnWidth(COL_SYMBOL, 140);
|
||||||
|
}
|
||||||
|
|
||||||
CDebugCommandsView* CDebugCommandsView::_this = NULL;
|
CDebugCommandsView* CDebugCommandsView::_this = NULL;
|
||||||
HHOOK CDebugCommandsView::hWinMessageHook = NULL;
|
HHOOK CDebugCommandsView::hWinMessageHook = NULL;
|
||||||
|
|
||||||
|
@ -35,9 +58,8 @@ CToolTipDialog<CDebugCommandsView>()
|
||||||
m_RowHeight = 13;
|
m_RowHeight = 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
CDebugCommandsView::~CDebugCommandsView(void)
|
CDebugCommandsView::~CDebugCommandsView()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT CDebugCommandsView::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
|
LRESULT CDebugCommandsView::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
|
||||||
|
@ -1363,7 +1385,6 @@ LRESULT CDebugCommandsView::OnCommandListRightClicked(NMHDR* pNMHDR)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LRESULT CDebugCommandsView::OnListBoxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
|
LRESULT CDebugCommandsView::OnListBoxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
|
||||||
{
|
{
|
||||||
if (wID == IDC_BP_LIST)
|
if (wID == IDC_BP_LIST)
|
||||||
|
|
|
@ -29,22 +29,7 @@ public:
|
||||||
COL_SYMBOL
|
COL_SYMBOL
|
||||||
};
|
};
|
||||||
|
|
||||||
void Attach(HWND hWndNew)
|
void Attach(HWND hWndNew);
|
||||||
{
|
|
||||||
CListViewCtrl::Attach(hWndNew);
|
|
||||||
ModifyStyle(LVS_OWNERDRAWFIXED, 0, 0);
|
|
||||||
SetExtendedListViewStyle(LVS_EX_FULLROWSELECT | LVS_EX_DOUBLEBUFFER | LVS_EX_LABELTIP);
|
|
||||||
AddColumn("", COL_ARROWS);
|
|
||||||
AddColumn("Address", COL_ADDRESS);
|
|
||||||
AddColumn("Command", COL_COMMAND);
|
|
||||||
AddColumn("Parameters", COL_PARAMETERS);
|
|
||||||
AddColumn("Symbol", COL_SYMBOL);
|
|
||||||
SetColumnWidth(COL_ARROWS, 30);
|
|
||||||
SetColumnWidth(COL_ADDRESS, 65);
|
|
||||||
SetColumnWidth(COL_COMMAND, 60);
|
|
||||||
SetColumnWidth(COL_PARAMETERS, 120);
|
|
||||||
SetColumnWidth(COL_SYMBOL, 140);
|
|
||||||
}
|
|
||||||
|
|
||||||
BEGIN_MSG_MAP_EX(CCommandsList)
|
BEGIN_MSG_MAP_EX(CCommandsList)
|
||||||
END_MSG_MAP()
|
END_MSG_MAP()
|
||||||
|
|
Loading…
Reference in New Issue