ReactOS 0.4.16-dev-289-g096a551
|
#include <window.h>
Classes | |
struct | StaticWindowData |
structure for managing critical sections as static class information in struct Window More... | |
Public Types | |
typedef map< HWND, Window * > | WindowMap |
typedef Window *(* | CREATORFUNC) (HWND) |
typedef Window *(* | CREATORFUNC_INFO) (HWND, const void *) |
Public Member Functions | |
Window (HWND hwnd) | |
virtual | ~Window () |
LRESULT | SendParent (UINT nmsg, WPARAM wparam=0, LPARAM lparam=0) |
LRESULT | PostParent (UINT nmsg, WPARAM wparam=0, LPARAM lparam=0) |
Window (INT cx, INT cy, BOOL fAutoHide=FALSE) | |
virtual | ~Window () |
virtual LRESULT CALLBACK | WindowProcDx (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
void | DoAction () |
Public Attributes | |
IAccessible | IAccessible_iface |
IOleWindow | IOleWindow_iface |
IEnumVARIANT | IEnumVARIANT_iface |
LONG | ref |
Static Protected Member Functions | |
static Window * | create_controller (HWND hwnd) |
create controller for a new window | |
static StaticWindowData & | GetStaticWindowData () |
static LRESULT CALLBACK | MDICBTHookProc (int code, WPARAM wparam, LPARAM lparam) |
static LRESULT CALLBACK | PropSheetCBTHookProc (int code, WPARAM wparam, LPARAM lparam) |
Protected Attributes | |
HWND | m_hwnd |
BOOL | m_fAutoHide |
BOOL | m_fOnTop |
BOOL | m_fHiding |
UINT | m_uSide |
LONG | m_cxWidth |
LONG | m_cyHeight |
LONG | m_cxSave |
LONG | m_cySave |
BOOL | m_fAppBarRegd |
BOOL | m_fMoving |
BOOL | m_bDragged |
POINT | m_ptDragOn |
RECT | m_rcAppBar |
RECT | m_rcDrag |
Static Protected Attributes | |
static WindowMap | s_wnd_map |
static const void * | s_new_info = NULL |
static CREATORFUNC | s_window_creator = NULL |
static HHOOK | s_hcbtHook = 0 |
static WindowSet | s_pretranslate_windows |
static WindowSet | s_dialogs |
Class Window is the base class for several C++ window wrapper classes. Window objects are allocated from the heap. They are automatically freed when the window gets destroyed.
Window::Window | ( | HWND | hwnd | ) |
Definition at line 71 of file window.cpp.
Referenced by Window().
|
virtual |
Definition at line 140 of file SHAppBarMessage.cpp.
|
inlinevirtual |
Definition at line 148 of file SHAppBarMessage.cpp.
Definition at line 1109 of file SHAppBarMessage.cpp.
Referenced by OnCommand().
Definition at line 372 of file SHAppBarMessage.cpp.
Referenced by AppBar_SetAutoHide(), and OnLButtonUp().
Definition at line 493 of file SHAppBarMessage.cpp.
Referenced by OnActivate(), and OnTimer().
Definition at line 419 of file SHAppBarMessage.cpp.
Referenced by AppBar_SetAutoHide().
|
inlineprotected |
Definition at line 621 of file SHAppBarMessage.cpp.
Referenced by OnAppBarCallback().
Definition at line 556 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_QuerySetPos(), and OnMouseMove().
|
inlineprotected |
Definition at line 598 of file SHAppBarMessage.cpp.
Referenced by AppBar_PosChanged(), AppBar_SetSide(), AppBar_Size(), and OnLButtonUp().
Definition at line 486 of file SHAppBarMessage.cpp.
Definition at line 364 of file SHAppBarMessage.cpp.
Referenced by AppBar_SetSide(), and OnRButtonDown().
Definition at line 527 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), and AppBar_UnHide().
Definition at line 535 of file SHAppBarMessage.cpp.
Referenced by OnNCHitTest().
Definition at line 439 of file SHAppBarMessage.cpp.
Referenced by AppBar_NoAutoHide(), DoAction(), and OnCreate().
Definition at line 543 of file SHAppBarMessage.cpp.
Definition at line 519 of file SHAppBarMessage.cpp.
Referenced by OnActivate(), and OnTimer().
|
static |
Reimplemented in DesktopShellView, FindProgramDlg, DesktopSettingsDlg, TaskbarSettingsDlg, StartmenuSettingsDlg, MdiSdiDlg, FileChildWindow, MainFrameBase, MDIMainFrame, SDIMainFrame, DesktopBar, QuickLaunchBar, StartMenu, StartMenuHandler, StartMenuRoot, FavoritesMenu, TaskBar, NotifyArea, TrayNotifyDlg, SubclassedWindow, Dialog, and PropSheetPageDlg.
Definition at line 285 of file window.cpp.
Referenced by DesktopShellView::Command(), FindProgramDlg::Command(), StartMenu::Command(), TaskBar::Command(), Command(), DialogProc(), and WindowWndProc().
|
static |
Definition at line 87 of file window.cpp.
Referenced by DesktopWindow::Create(), MDIMainFrame::Create(), SDIMainFrame::Create(), DesktopBar::Create(), Create(), StartMenuRoot::Create(), TaskBar::Create(), NotifyArea::Create(), ClockWindow::Create(), and StartMenu::Create().
|
static |
Definition at line 102 of file window.cpp.
create controller for a new window
Definition at line 220 of file window.cpp.
Referenced by create_controller(), DialogProc(), MDICBTHookProc(), PropSheetCBTHookProc(), and WindowWndProc().
|
static |
Definition at line 118 of file window.cpp.
Referenced by ChildWindow::create(), FileChildWindow::create(), and create_mdi_child().
Definition at line 725 of file window.cpp.
Referenced by DialogProc(), and Dialog::DoModal().
Definition at line 619 of file window.cpp.
Referenced by dispatch_dialog_msg(), MessageLoop(), and StartMenuRoot::TrackStartmenu().
|
inline |
Definition at line 971 of file SHAppBarMessage.cpp.
Referenced by ActionThreadFunc().
|
inlinestatic |
Definition at line 165 of file SHAppBarMessage.cpp.
|
inlinestatic |
Definition at line 179 of file SHAppBarMessage.cpp.
Definition at line 152 of file SHAppBarMessage.cpp.
get window controller from window handle
Definition at line 203 of file window.cpp.
Referenced by create_mdi_child(), DialogProc(), get_window(), MDICBTHookProc(), PropSheetCBTHookProc(), and WindowWndProc().
|
staticprotected |
Definition at line 63 of file window.cpp.
Referenced by Create(), create_controller(), create_mdi_child(), Dialog::DoModal(), get_window(), GetStaticWindowData(), Window(), and ~Window().
Definition at line 965 of file SHAppBarMessage.cpp.
Referenced by DoAction().
|
protectedvirtual |
Reimplemented in DesktopWindow, DesktopBar, StartMenu, StartMenuRoot, TaskBar, NotifyArea, and MDIShellBrowserChild.
Definition at line 241 of file window.cpp.
Referenced by DialogProc(), PropSheetPageDlg::DialogProc(), DesktopWindow::Init(), DesktopBar::Init(), StartMenu::Init(), TaskBar::Init(), NotifyArea::Init(), Init(), MDIShellBrowserChild::Init(), SubclassedWindow::SubclassedWndProc(), and WindowWndProc().
Definition at line 142 of file window.cpp.
Referenced by create_mdi_child(), and MDICBTHookProc().
|
static |
Definition at line 629 of file window.cpp.
Referenced by MessageLoop().
Reimplemented in DesktopShellView, FindProgramDlg, DesktopSettingsDlg, TaskbarSettingsDlg, FileChildWindow, MainFrameBase, Pane, ShellBrowserChildT< ChildWindow >, ShellBrowserChildT< MainFrameBase >, DesktopBar, QuickLaunchBar, TaskBar, NotifyArea, TrayNotifyDlg, ClockWindow, and SubclassedWindow.
Definition at line 290 of file window.cpp.
Referenced by DialogProc(), PropSheetPageDlg::DialogProc(), DesktopShellView::Notify(), DesktopSettingsDlg::Notify(), TaskbarSettingsDlg::Notify(), QuickLaunchBar::Notify(), TaskBar::Notify(), Notify(), and WindowWndProc().
|
inlineprotected |
Definition at line 686 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
|
inlineprotected |
Definition at line 311 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 261 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
|
inlineprotected |
Definition at line 668 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 305 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
|
inlineprotected |
Definition at line 824 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 918 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 832 of file SHAppBarMessage.cpp.
Referenced by OnLButtonUp(), and WindowProcDx().
Definition at line 743 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 752 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 803 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 282 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
|
inlineprotected |
Definition at line 299 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 715 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 761 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
|
inlineprotected |
Definition at line 706 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 667 of file window.cpp.
Referenced by PostParent(), and StartMenuButton::WndProc().
Definition at line 589 of file window.cpp.
Referenced by MessageLoop(), pretranslate_msg(), and StartMenuRoot::TrackStartmenu().
|
staticprotected |
Definition at line 185 of file window.cpp.
Referenced by PropSheetCBTHookProc().
Definition at line 609 of file window.cpp.
Referenced by Dialog::Dialog(), DialogWindow::DialogWindow(), and register_dialog().
Definition at line 579 of file window.cpp.
Referenced by FindProgramDlg::FindProgramDlg(), PreTranslateWindow::PreTranslateWindow(), register_pretranslate(), and TrayNotifyDlg::TrayNotifyDlg().
Definition at line 657 of file window.cpp.
Referenced by StartMenu::CloseStartMenu(), NotifyArea::Command(), SendParent(), StartMenuButton::WndProc(), StartMenu::WndProc(), EditController::WndProc(), and StartMenu::~StartMenu().
Definition at line 614 of file window.cpp.
Referenced by unregister_dialog(), Dialog::~Dialog(), and DialogWindow::~DialogWindow().
Definition at line 584 of file window.cpp.
Referenced by unregister_pretranslate(), FindProgramDlg::~FindProgramDlg(), PreTranslateWindow::~PreTranslateWindow(), and TrayNotifyDlg::~TrayNotifyDlg().
|
inlinestatic |
Definition at line 230 of file SHAppBarMessage.cpp.
Referenced by DoRegisterClass().
|
inlinevirtual |
Definition at line 196 of file SHAppBarMessage.cpp.
Referenced by WindowProc().
|
static |
Definition at line 247 of file window.cpp.
Referenced by WindowWndProc().
Reimplemented in BackgroundWindow, DesktopWindow, DesktopShellView, ExplorerAboutDlg, FileChildWindow, MainFrameBase, MDIMainFrame, SDIMainFrame, Pane, ShellBrowserChildT< ChildWindow >, ShellBrowserChildT< MainFrameBase >, MDIShellBrowserChild, IPCtrlWindow< ChildWindow, SIfacePtr< IWebBrowser2 > >, WebChildWindow, DesktopBar, StartButton, QuickLaunchBar, StartMenuButton, StartMenu, StartMenuRoot, TaskBar, NotifyArea, TrayNotifyDlg, ClockWindow, ExtContextMenuHandlerT< SubclassedWindow >, ExtContextMenuHandlerT< ChildWindow >, ExtContextMenuHandlerT< ShellBrowserChildT< ChildWindow > >, ExtContextMenuHandlerT< ShellBrowserChildT< MainFrameBase > >, ExtContextMenuHandlerT< OwnerDrawParent< DialogWindow > >, SubclassedWindow, ChildWindow, Dialog, ResizeController< Dialog >, CtlColorParent< OwnerDrawParent< Dialog > >, OwnerDrawParent< Window >, OwnerDrawParent< PropSheetPageDlg >, OwnerDrawParent< Dialog >, OwnerDrawParent< DialogWindow >, OwnerdrawnButton, FlatButton, ColorStatic, HyperlinkCtrl, EditController, and FindProgramDlg.
Definition at line 280 of file window.cpp.
Referenced by DialogProc(), WindowWndProc(), DesktopWindow::WndProc(), MainFrameBase::WndProc(), StartButton::WndProc(), TaskBar::WndProc(), NotifyArea::WndProc(), ClockWindow::WndProc(), and WndProc().
IAccessible Window::IAccessible_iface |
IEnumVARIANT Window::IEnumVARIANT_iface |
IOleWindow Window::IOleWindow_iface |
|
protected |
Definition at line 256 of file SHAppBarMessage.cpp.
Referenced by OnCreate(), OnLButtonDown(), OnLButtonUp(), and OnMouseMove().
|
protected |
Definition at line 252 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_NoAutoHide(), AppBar_PosChanged(), OnCreate(), and OnSize().
|
protected |
Definition at line 250 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_NoAutoHide(), AppBar_SetSide(), OnCreate(), OnMouseMove(), and OnSize().
|
protected |
Definition at line 251 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_NoAutoHide(), AppBar_SetSide(), OnCreate(), OnMouseMove(), and OnSize().
|
protected |
Definition at line 253 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_NoAutoHide(), AppBar_PosChanged(), OnCreate(), and OnSize().
|
protected |
Definition at line 254 of file SHAppBarMessage.cpp.
Referenced by AppBar_Register(), AppBar_Size(), AppBar_UnRegister(), and OnCreate().
|
protected |
Definition at line 246 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_Hide(), AppBar_NoAutoHide(), AppBar_PosChanged(), AppBar_QuerySetPos(), AppBar_SetAutoHideTimer(), AppBar_SetAutoUnhideTimer(), AppBar_SetSide(), OnLButtonUp(), OnMove(), OnRButtonDown(), OnSize(), and OnTimer().
|
protected |
Definition at line 248 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_Hide(), AppBar_SetAutoUnhideTimer(), AppBar_SetSide(), AppBar_UnHide(), OnMove(), OnSize(), and OnTimer().
|
protected |
Definition at line 255 of file SHAppBarMessage.cpp.
Referenced by OnCreate(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), OnMove(), OnSize(), and OnTimer().
|
protected |
Definition at line 247 of file SHAppBarMessage.cpp.
Referenced by AppBar_SetAlwaysOnTop(), OnAppBarCallback(), and OnCreate().
|
protected |
Definition at line 245 of file SHAppBarMessage.cpp.
Referenced by OnCreate(), and OnNCDestroy().
|
protected |
Definition at line 257 of file SHAppBarMessage.cpp.
Referenced by OnLButtonDown(), and OnMouseMove().
|
protected |
Definition at line 258 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_Hide(), AppBar_PosChanged(), AppBar_QuerySetPos(), AppBar_UnHide(), OnLButtonUp(), and OnSize().
|
protected |
Definition at line 259 of file SHAppBarMessage.cpp.
Referenced by OnLButtonUp(), and OnMouseMove().
|
protected |
Definition at line 249 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_Hide(), AppBar_NoAutoHide(), AppBar_PosChanged(), AppBar_QueryPos(), AppBar_QuerySetPos(), AppBar_Size(), OnCreate(), OnLButtonUp(), OnMouseMove(), OnNCHitTest(), and OnSize().
|
staticprotected |
Definition at line 138 of file window.h.
Referenced by dispatch_dialog_msg(), register_dialog(), and unregister_dialog().
|
staticprotected |
Definition at line 133 of file window.h.
Referenced by create_mdi_child(), MDICBTHookProc(), and PropSheetCBTHookProc().
Definition at line 119 of file window.h.
Referenced by Create(), create_controller(), create_mdi_child(), and Dialog::DoModal().
|
staticprotected |
Definition at line 137 of file window.h.
Referenced by pretranslate_msg(), register_pretranslate(), and unregister_pretranslate().
|
staticprotected |
Definition at line 120 of file window.h.
Referenced by Create(), create_controller(), create_mdi_child(), and Dialog::DoModal().
|
staticprotected |
Definition at line 117 of file window.h.
Referenced by get_window(), Window(), and ~Window().