29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/debugger_resource.h"
76 case WM_GETMINMAXINFO:
78 MINMAXINFO* mmi = (MINMAXINFO*)lparam;
79 mmi->ptMinTrackSize.x = 300;
80 mmi->ptMinTrackSize.y = 200;
95 GetClientRect ( wnd, &client );
97 ScreenToClient ( wnd, (
POINT*)&button );
98 ScreenToClient ( wnd, (
POINT*)&button.right );
101 GetWindowRect ( GetDlgItem ( wnd,
IDC_DBG_CLOSE ), &button );
102 ScreenToClient ( wnd, (
POINT*)&button );
103 ScreenToClient ( wnd, (
POINT*)&button.right );
107 ScreenToClient ( wnd, (
POINT*)&button );
108 ScreenToClient ( wnd, (
POINT*)&button.right );
112 ScreenToClient ( wnd, (
POINT*)&button );
113 ScreenToClient ( wnd, (
POINT*)&button.right );
117 ScreenToClient ( wnd, (
POINT*)&button );
118 ScreenToClient ( wnd, (
POINT*)&button.right );
131 SetWindowLong ( wnd, GWL_USERDATA, lparam );
134 GetClientRect ( wnd, &client );
137 ScreenToClient ( wnd, (
POINT*)&button );
141 ScreenToClient ( wnd, (
POINT*)&button.right );
153 col.mask = LVCF_WIDTH|LVCF_TEXT;
155 col.pszText =
"Name";
158 col.pszText =
"Value";
175 switch ( LOWORD(wparam) )
178 SendMessage ( wnd, WM_CLOSE, 0, 0 );
184 if ( HIWORD(wparam) == EN_CHANGE )
186 bool enable = GetWindowTextLength ( GetDlgItem ( wnd,
IDC_DBG_VARIABLE ) )?
true:
false;
230 SetCursor ( LoadCursor (
NULL, IDC_WAIT ) );
257 item.mask = LVIF_TEXT;
258 item.pszText = (LPSTR)varname;
266 SetCursor ( LoadCursor (
NULL, IDC_ARROW ) );
bool GetWindowPlacement(const char *name, HWND hwnd)
bool WaitFor(EDebuggerMessage msg, int time)
void SetColumnWidths(const char *name, HWND list)
bool DoModal(rvDebuggerWindow *window, int callstackDepth, const char *variable=NULL)
CONST PIXELFORMATDESCRIPTOR UINT
void InspectVariable(const char *name, int callstackDepth)
#define IDD_DBG_QUICKWATCH
rvRegistryOptions & GetOptions(void)
void AddWatch(const char *name, bool update=true)
int Icmp(const char *text) const
void SetVariable(const char *varname, bool force=false)
void GetColumnWidths(const char *name, HWND list)
rvDebuggerWindow * mDebuggerWindow
void SetWindowPlacement(const char *name, HWND hwnd)
rvDebuggerQuickWatchDlg()
static INT_PTR CALLBACK DlgProc(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
rvDebuggerClient & GetClient(void)
#define IDC_DBG_CURVALUE_STATIC
rvDebuggerApp gDebuggerApp
HINSTANCE GetInstance(void)
const char * GetVariableValue(const char *name, int stackDepth)