/**************************************************************************** * * * Project64 - A Nintendo 64 emulator. * * http://www.pj64-emu.com/ * * Copyright (C) 2012 Project64. All rights reserved. * * * * License: * * GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * * * ****************************************************************************/ #pragma once // Modal add symbol dialog class CAddSymbolDlg : public CDialogImpl { public: enum { IDD = IDD_Debugger_AddSymbol }; INT_PTR DoModal(CDebuggerUI* debugger); INT_PTR DoModal(CDebuggerUI* debugger, uint32_t initAddress); INT_PTR DoModal(CDebuggerUI* debugger, uint32_t initAddress, int initType); private: CDebuggerUI* m_Debugger; bool m_bHaveAddress; bool m_bHaveType; uint32_t m_InitAddress; int m_InitType; CEditNumber m_AddressEdit; CComboBox m_TypeComboBox; CEdit m_NameEdit; CEdit m_DescriptionEdit; LRESULT OnClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); LRESULT OnDestroy(void) { return 0; } BEGIN_MSG_MAP_EX(CAddSymbolDlg) MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) COMMAND_CODE_HANDLER(BN_CLICKED, OnClicked) MSG_WM_DESTROY(OnDestroy) END_MSG_MAP() };