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

trunk/src/osd/modules/debugger/win/debugviewinfo.c
r243685r243686
774774   }
775775
776776   debugview_info *const info = (debugview_info *)(FPTR)GetWindowLongPtr(wnd, GWLP_USERDATA);
777   if (!info)
777   if (info == NULL)
778778      return DefWindowProc(wnd, message, wparam, lparam);
779779
780   assert(info->m_wnd == wnd);
780   assert((info->m_wnd == wnd) || (info->m_wnd == NULL));
781781   return info->view_proc(message, wparam, lparam);
782782}
783783
trunk/src/osd/modules/debugger/win/debugwininfo.c
r243685r243686
564564   }
565565
566566   debugwin_info *const info = (debugwin_info *)(FPTR)GetWindowLongPtr(wnd, GWLP_USERDATA);
567   if (!info)
567   if (info == NULL)
568568      return DefWindowProc(wnd, message, wparam, lparam);
569569
570   assert(info->m_wnd == wnd);
570   assert((info->m_wnd == wnd) || (info->m_wnd == NULL));
571571   return info->window_proc(message, wparam, lparam);
572572}
573573
trunk/src/osd/modules/debugger/win/debugwininfo.h
r243685r243686
2121public:
2222   template<class U> friend class simple_list;
2323
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);
2525   virtual ~debugwin_info();
2626
2727   bool is_valid() const { return m_wnd != NULL; }
r243685r243686
101101      ID_DEVICE_OPTIONS   // always keep this at the end
102102   };
103103
104   bool is_main_console() const { return m_is_main_console; }
104105   HWND window() const { return m_wnd; }
105106   UINT32 minwidth() const { return m_minwidth; }
106107   UINT32 maxwidth() const { return m_maxwidth; }


Previous 199869 Revisions Next


© 1997-2024 The MAME Team