ReactOS 0.4.16-dev-1489-g8fbbb41
|
#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 () |
void | TEST_Main () |
void | TEST_Dragging () |
void | TEST_AutoHide () |
void | TEST_FullScreen () |
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) |
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 146 of file SHAppBarMessage.cpp.
|
inlinevirtual |
Definition at line 154 of file SHAppBarMessage.cpp.
Definition at line 1218 of file SHAppBarMessage.cpp.
Referenced by OnCommand().
Definition at line 385 of file SHAppBarMessage.cpp.
Referenced by AppBar_SetAutoHide(), OnLButtonUp(), and TEST_AutoHide().
Definition at line 369 of file SHAppBarMessage.cpp.
Referenced by TEST_AutoHide().
Definition at line 505 of file SHAppBarMessage.cpp.
Referenced by OnActivate(), and OnTimer().
Definition at line 431 of file SHAppBarMessage.cpp.
Referenced by AppBar_SetAutoHide().
|
inlineprotected |
Definition at line 631 of file SHAppBarMessage.cpp.
Referenced by OnAppBarCallback().
Definition at line 567 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_QuerySetPos(), and OnMouseMove().
|
inlineprotected |
Definition at line 608 of file SHAppBarMessage.cpp.
Referenced by AppBar_PosChanged(), AppBar_SetSide(), AppBar_Size(), and OnLButtonUp().
Definition at line 498 of file SHAppBarMessage.cpp.
Definition at line 377 of file SHAppBarMessage.cpp.
Referenced by AppBar_SetSide(), and OnRButtonDown().
Definition at line 539 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), and AppBar_UnHide().
Definition at line 547 of file SHAppBarMessage.cpp.
Referenced by OnNCHitTest().
Definition at line 450 of file SHAppBarMessage.cpp.
Referenced by AppBar_NoAutoHide(), OnCreate(), TEST_AutoHide(), and TEST_Main().
Definition at line 555 of file SHAppBarMessage.cpp.
Definition at line 531 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 981 of file SHAppBarMessage.cpp.
Referenced by ActionThreadFunc().
|
inlinestatic |
Definition at line 169 of file SHAppBarMessage.cpp.
Definition at line 156 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 969 of file SHAppBarMessage.cpp.
Referenced by TEST_Dragging(), and TEST_Main().
|
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 697 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
|
inlineprotected |
Definition at line 311 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 255 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
|
inlineprotected |
Definition at line 678 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
|
inlineprotected |
Definition at line 829 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 923 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 837 of file SHAppBarMessage.cpp.
Referenced by OnLButtonUp(), and WindowProcDx().
Definition at line 748 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 757 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 808 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 724 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
Definition at line 766 of file SHAppBarMessage.cpp.
Referenced by WindowProcDx().
|
inlineprotected |
Definition at line 716 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().
|
inlineprotected |
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().
|
inline |
Definition at line 1134 of file SHAppBarMessage.cpp.
Referenced by DoAction().
|
inline |
Definition at line 1098 of file SHAppBarMessage.cpp.
Referenced by DoAction().
|
inline |
|
inline |
Definition at line 993 of file SHAppBarMessage.cpp.
Referenced by DoAction().
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 223 of file SHAppBarMessage.cpp.
Referenced by DoRegisterClass().
|
inlinevirtual |
Definition at line 189 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 249 of file SHAppBarMessage.cpp.
Referenced by OnCreate(), OnLButtonDown(), OnLButtonUp(), and OnMouseMove().
|
protected |
Definition at line 253 of file SHAppBarMessage.cpp.
Referenced by OnAppBarCallback(), and TEST_FullScreen().
|
protected |
Definition at line 245 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_NoAutoHide(), AppBar_PosChanged(), OnCreate(), and OnSize().
|
protected |
Definition at line 243 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_NoAutoHide(), AppBar_SetSide(), OnCreate(), OnMouseMove(), OnSize(), and TEST_AutoHide().
|
protected |
Definition at line 244 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_NoAutoHide(), AppBar_SetSide(), OnCreate(), OnMouseMove(), OnSize(), and TEST_AutoHide().
|
protected |
Definition at line 246 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_NoAutoHide(), AppBar_PosChanged(), OnCreate(), and OnSize().
|
protected |
Definition at line 247 of file SHAppBarMessage.cpp.
Referenced by AppBar_Register(), AppBar_Size(), AppBar_UnRegister(), and OnCreate().
|
protected |
Definition at line 239 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 241 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_Hide(), AppBar_SetAutoUnhideTimer(), AppBar_SetSide(), AppBar_UnHide(), OnMove(), OnSize(), and OnTimer().
|
protected |
Definition at line 248 of file SHAppBarMessage.cpp.
Referenced by OnCreate(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), OnMove(), OnSize(), and OnTimer().
|
protected |
Definition at line 240 of file SHAppBarMessage.cpp.
Referenced by AppBar_SetAlwaysOnTop(), OnAppBarCallback(), and OnCreate().
|
protected |
Definition at line 238 of file SHAppBarMessage.cpp.
Referenced by OnCreate(), and OnNCDestroy().
|
protected |
Definition at line 250 of file SHAppBarMessage.cpp.
Referenced by OnLButtonDown(), and OnMouseMove().
|
protected |
Definition at line 251 of file SHAppBarMessage.cpp.
Referenced by AppBar_AutoHide(), AppBar_Hide(), AppBar_PosChanged(), AppBar_QuerySetPos(), AppBar_UnHide(), OnLButtonUp(), and OnSize().
|
protected |
Definition at line 252 of file SHAppBarMessage.cpp.
Referenced by OnLButtonUp(), and OnMouseMove().
|
protected |
Definition at line 242 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().