| Previous | 199869 Revisions | Next |
| r35174 Saturday 21st February, 2015 at 11:46:20 UTC by Vasantha Crabb |
|---|
| WM_SIZE etc may be posted before CreateWindowEx returns |
| [src/osd/modules/debugger/win] | debugviewinfo.c debugwininfo.c debugwininfo.h |
| r243685 | r243686 | |
|---|---|---|
| 774 | 774 | } |
| 775 | 775 | |
| 776 | 776 | debugview_info *const info = (debugview_info *)(FPTR)GetWindowLongPtr(wnd, GWLP_USERDATA); |
| 777 | if ( | |
| 777 | if (info == NULL) | |
| 778 | 778 | return DefWindowProc(wnd, message, wparam, lparam); |
| 779 | 779 | |
| 780 | assert(info->m_wnd == wnd); | |
| 780 | assert((info->m_wnd == wnd) || (info->m_wnd == NULL)); | |
| 781 | 781 | return info->view_proc(message, wparam, lparam); |
| 782 | 782 | } |
| 783 | 783 |
| r243685 | r243686 | |
|---|---|---|
| 564 | 564 | } |
| 565 | 565 | |
| 566 | 566 | debugwin_info *const info = (debugwin_info *)(FPTR)GetWindowLongPtr(wnd, GWLP_USERDATA); |
| 567 | if ( | |
| 567 | if (info == NULL) | |
| 568 | 568 | return DefWindowProc(wnd, message, wparam, lparam); |
| 569 | 569 | |
| 570 | assert(info->m_wnd == wnd); | |
| 570 | assert((info->m_wnd == wnd) || (info->m_wnd == NULL)); | |
| 571 | 571 | return info->window_proc(message, wparam, lparam); |
| 572 | 572 | } |
| 573 | 573 |
| r243685 | r243686 | |
|---|---|---|
| 21 | 21 | public: |
| 22 | 22 | template<class U> friend class simple_list; |
| 23 | 23 | |
| 24 | debugwin_info(debugger_windows_interface &debugger, bool main_console, LPCSTR title, WNDPROC handler); | |
| 24 | debugwin_info(debugger_windows_interface &debugger, bool is_main_console, LPCSTR title, WNDPROC handler); | |
| 25 | 25 | virtual ~debugwin_info(); |
| 26 | 26 | |
| 27 | 27 | bool is_valid() const { return m_wnd != NULL; } |
| r243685 | r243686 | |
| 101 | 101 | ID_DEVICE_OPTIONS // always keep this at the end |
| 102 | 102 | }; |
| 103 | 103 | |
| 104 | bool is_main_console() const { return m_is_main_console; } | |
| 104 | 105 | HWND window() const { return m_wnd; } |
| 105 | 106 | UINT32 minwidth() const { return m_minwidth; } |
| 106 | 107 | UINT32 maxwidth() const { return m_maxwidth; } |
| https://github.com/mamedev/mame/commit/3c4fc89e66aa571d1a31173092124d20db0cf09b |
| Previous | 199869 Revisions | Next |