ReactOS
0.4.15-dev-2095-g7caf9e9
|
#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 More... | |
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 DoCreateMainWnd().
|
virtual |
Definition at line 79 of file window.cpp.
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 345 of file SHAppBarMessage.cpp.
Referenced by OnCreate().
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().
Definition at line 355 of file SHAppBarMessage.cpp.
Referenced by OnNCDestroy().
|
static |
Definition at line 295 of file window.cpp.
Reimplemented in FavoritesMenu, PropSheetPageDlg, Dialog, StartMenuRoot, StartMenuHandler, TrayNotifyDlg, StartMenu, SubclassedWindow, DesktopShellView, SDIMainFrame, NotifyArea, MDIMainFrame, DesktopBar, FindProgramDlg, MdiSdiDlg, FileChildWindow, TaskBar, StartmenuSettingsDlg, MainFrameBase, TaskbarSettingsDlg, QuickLaunchBar, and DesktopSettingsDlg.
Definition at line 285 of file window.cpp.
Referenced by TaskBar::Command(), StartMenu::Command(), DialogProc(), and WindowWndProc().
|
static |
Definition at line 87 of file window.cpp.
Referenced by DesktopWindow::Create(), TaskBar::Create(), DesktopBar::Create(), MDIMainFrame::Create(), NotifyArea::Create(), SDIMainFrame::Create(), StartMenu::Create(), ClockWindow::Create(), and StartMenuRoot::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 DialogProc(), MDICBTHookProc(), PropSheetCBTHookProc(), and WindowWndProc().
|
static |
Definition at line 118 of file window.cpp.
Referenced by FileChildWindow::create(), and ChildWindow::create().
Definition at line 725 of file window.cpp.
Referenced by Dialog::DoModal().
Definition at line 619 of file window.cpp.
Referenced by PropertySheetDialog::DoModal(), 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.
Referenced by START_TEST().
|
inlinestatic |
Definition at line 179 of file SHAppBarMessage.cpp.
Referenced by START_TEST().
Definition at line 152 of file SHAppBarMessage.cpp.
Referenced by START_TEST().
get window controller from window handle
Definition at line 203 of file window.cpp.
Referenced by create_mdi_child(), DialogProc(), MDICBTHookProc(), PropSheetCBTHookProc(), and WindowWndProc().
|
inlinestatic |
Definition at line 87 of file window.h.
Referenced by get_window().
Definition at line 190 of file SHAppBarMessage.cpp.
Referenced by WindowProc().
|
staticprotected |
Definition at line 63 of file window.cpp.
Referenced by Create(), create_controller(), create_mdi_child(), Dialog::DoModal(), get_window(), Window(), and ~Window().
Definition at line 965 of file SHAppBarMessage.cpp.
Referenced by DoAction().
|
protectedvirtual |
Reimplemented in StartMenuRoot, MDIShellBrowserChild, StartMenu, NotifyArea, DesktopBar, TaskBar, and DesktopWindow.
Definition at line 241 of file window.cpp.
Referenced by DialogProc(), PropSheetPageDlg::DialogProc(), DesktopWindow::Init(), TaskBar::Init(), DesktopBar::Init(), NotifyArea::Init(), StartMenu::Init(), MDIShellBrowserChild::Init(), SubclassedWindow::SubclassedWndProc(), and WindowWndProc().
Definition at line 142 of file window.cpp.
Referenced by create_mdi_child().
|
static |
Definition at line 629 of file window.cpp.
Referenced by explorer_main().
Reimplemented in ClockWindow, TrayNotifyDlg, ShellBrowserChildT< ChildWindow >, ShellBrowserChildT< MainFrameBase >, SubclassedWindow, DesktopShellView, NotifyArea, DesktopBar, FindProgramDlg, FileChildWindow, Pane, TaskBar, MainFrameBase, TaskbarSettingsDlg, QuickLaunchBar, and DesktopSettingsDlg.
Definition at line 290 of file window.cpp.
Referenced by DialogProc(), PropSheetPageDlg::DialogProc(), DesktopSettingsDlg::Notify(), TaskbarSettingsDlg::Notify(), TaskBar::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 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 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 StartMenuButton::WndProc().
Definition at line 589 of file window.cpp.
Referenced by PropertySheetDialog::DoModal(), MessageLoop(), and StartMenuRoot::TrackStartmenu().
|
staticprotected |
Definition at line 185 of file window.cpp.
Definition at line 609 of file window.cpp.
Referenced by Dialog::Dialog(), and DialogWindow::DialogWindow().
Definition at line 579 of file window.cpp.
Referenced by FindProgramDlg::FindProgramDlg(), PreTranslateWindow::PreTranslateWindow(), and TrayNotifyDlg::TrayNotifyDlg().
Definition at line 657 of file window.cpp.
Referenced by StartMenu::CloseStartMenu(), NotifyArea::Command(), StartMenuButton::WndProc(), StartMenu::WndProc(), EditController::WndProc(), and StartMenu::~StartMenu().
Definition at line 614 of file window.cpp.
Referenced by Dialog::~Dialog(), and DialogWindow::~DialogWindow().
Definition at line 584 of file window.cpp.
Referenced by 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.
Reimplemented in ExtContextMenuHandlerT< ShellBrowserChildT< MainFrameBase > >, ExtContextMenuHandlerT< ChildWindow >, ExtContextMenuHandlerT< OwnerDrawParent< DialogWindow > >, ExtContextMenuHandlerT< SubclassedWindow >, ExtContextMenuHandlerT< ShellBrowserChildT< ChildWindow > >, EditController, WebChildWindow, ExplorerAboutDlg, HyperlinkCtrl, ColorStatic, FlatButton, OwnerdrawnButton, OwnerDrawParent< PropSheetPageDlg >, OwnerDrawParent< Window >, OwnerDrawParent< DialogWindow >, OwnerDrawParent< Dialog >, CtlColorParent< OwnerDrawParent< Dialog > >, ResizeController< Dialog >, Dialog, StartMenuRoot, IPCtrlWindow< ChildWindow, SIfacePtr< IWebBrowser2 > >, ChildWindow, MDIShellBrowserChild, ClockWindow, TrayNotifyDlg, StartMenu, ShellBrowserChildT< ChildWindow >, ShellBrowserChildT< MainFrameBase >, SubclassedWindow, DesktopShellView, SDIMainFrame, NotifyArea, StartButton, MDIMainFrame, Pane, DesktopBar, StartMenuButton, FindProgramDlg, FileChildWindow, TaskBar, DesktopWindow, MainFrameBase, QuickLaunchBar, and BackgroundWindow.
Definition at line 280 of file window.cpp.
Referenced by DialogProc(), WindowWndProc(), MainFrameBase::WndProc(), DesktopWindow::WndProc(), TaskBar::WndProc(), NotifyArea::WndProc(), and ClockWindow::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().