4 virtual bool pretranslate_message(MSG * p_msg) = 0;
9 virtual bool on_idle() = 0;
19 virtual void remove_idle_handler(
idle_handler * ptr) = 0;
36 message_loop_v2::ptr apiV2;
37 if (api->service_query_t(apiV2)) {
38 apiV2->add_message_filter_ex(
this, lowest, highest);
40 api->add_message_filter(
this);
53 if (GetActiveWindow() == m_wnd) {
54 if (TranslateAccelerator(m_wnd,m_accel.get(),p_msg) != 0) {
63 m_accel.load(p_instance,p_accel);
76 if (IsOurMsg(p_msg) && m_wnd != NULL && GetActiveWindow() == m_wnd) {
77 ::PostMessage(m_wnd, WM_SYSCOMMAND, SC_CONTEXTHELP, -1);
85 return msg->message == WM_KEYDOWN && msg->wParam == VK_F1;
bool pretranslate_message(MSG *p_msg)
message_filter_impl_accel(HINSTANCE p_instance, const TCHAR *p_accel)
static bool IsOurMsg(const MSG *msg)
~idle_handler_impl_base()
message_filter_impl_base()
win32_accelerator m_accel
bool pretranslate_message(MSG *p_msg)
~message_filter_impl_base()
Base class for all service classes. Provides interfaces for reference counter and querying for differ...
bool pretranslate_message(MSG *p_msg)
message_filter_impl_base(t_uint32 lowest, t_uint32 highest)
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...