32 #ifndef __WINDOW_RESIZE_HOOK_H__
33 #define __WINDOW_RESIZE_HOOK_H__
38 #ifndef PRUSTRING_DEFINED
39 #define PRUSTRING_DEFINED
44 typedef basic_string< PRUnichar > prustring;
48 #include "IWindowResizeHook.h"
49 #include "../NativeWindowFromNode.h"
53 #define SONGBIRD_WINDOWRESIZEHOOK_CONTRACTID \
54 "@songbirdnest.com/Songbird/WindowResizeHook;1"
55 #define SONGBIRD_WINDOWRESIZEHOOK_CLASSNAME \
56 "Songbird Window Resize Hook Interface"
57 #define SONGBIRD_WINDOWRESIZEHOOK_CID \
62 {0x92, 0x25, 0xb5, 0xca, 0xf9, 0xfe, 0x29, 0x55} \
73 LRESULT CALLBACK
ResizeHook(
int code, WPARAM wParam, LPARAM lParam);
82 NS_DECL_SBIWINDOWRESIZEHOOK
86 static HHOOK m_hookid;
92 static std::list<CWindowResizeHookItem *>
m_items;
95 #endif // __WINDOW_RESIZE_HOOK_H__
static CWindowResizeHookItem * findItemByWindow(void *wnd)
LRESULT CALLBACK ResizeHook(int code, WPARAM wParam, LPARAM lParam)
static CWindowResizeHookItem * findItemByCallback(sbIWindowResizeHookCallback *cb)
virtual ~CWindowResizeHook()
sbIWindowResizeHookCallback * m_callback
static std::list< CWindowResizeHookItem * > m_items
WindowResizeHook callback interface This interface describes a callback for the WindowResizeHook serv...
WindowResizeHook service interface This is an interface to the WindowResizeHook service, used to used to register callback notifications of window resizing events.