#include "precomp.h"
Go to the source code of this file.
Classes | |
struct | tagARRANGEWINDOWSDATA |
Defines | |
#define | TITLE_EXTRA 5 |
#define | MAX_TITLE_LEN 160 |
#define | SBJ_HORZ HAS_SBHORZ |
#define | SBJ_VERT HAS_SBVERT |
#define | SBJ_BOTH (SBJ_HORZ | SBJ_VERT) |
Typedefs | |
typedef tagARRANGEWINDOWSDATA | ARRANGEWINDOWSDATA |
typedef tagARRANGEWINDOWSDATA * | PARRANGEWINDOWSDATA |
Functions | |
void | xxxSetFrameTitle (PWND pwndFrame, PWND pwndMDI, LPWSTR lpch) |
BOOL | TranslateMDISysAccel (HWND hwnd, LPMSG lpMsg) |
void | ByteOutsetRect (LPRECT lprc) |
void | CalcClientScrolling (HWND hwnd, UINT sbj, BOOL fIgnoreMin) |
void | ScrollMDIChildren (HWND hwnd, int nCtl, UINT wCmd, int iThumbPos) |
VOID | ScrollChildren (HWND hwnd, UINT wMsg, DWORD wParam) |
void | RecalculateScrollRanges (PWND pwndParent, BOOL fIgnoreMin) |
void | GetCascadeWindowPos (LPCRECT prcClient, int iWindow, LPRECT lprc) |
void | MDICheckCascadeRect (PWND pwndClient, LPRECT lprc) |
BOOL | UnmaximizeChildWindows (HWND hwndParent) |
WORD | ArrangeWindows (HWND hwndParent, UINT flags, CONST RECT *lpRect, UINT chwnd, CONST HWND *ahwnd, MONITORENUMPROC lpfnEnum) |
void | GetParentArrangeRect (PARRANGEWINDOWSDATA pawd, PMONITOR pMonitor, LPRECT lprc) |
PWND | ValidatePositionableWindow (HWND hwndChild, PWND pwndParent, PWND pwndDesktop, DWORD dwMDIFlags, PMONITOR pMonitor, DWORD *pdwSWPFlags) |
BOOL CALLBACK | CascadeWindowsEnum (HMONITOR hmonitor, HDC hdc, LPRECT lprc, LPARAM lparam) |
WORD | CascadeWindows (HWND hwndParent, UINT flags, CONST RECT *lpRect, UINT chwnd, CONST HWND *ahwnd) |
BOOL CALLBACK | TileWindowsEnum (HMONITOR hmonitor, HDC hdc, LPRECT lprc, LPARAM lparam) |
WORD | TileWindows (HWND hwndParent, UINT flags, CONST RECT *lpRect, UINT chwnd, CONST HWND *ahwnd) |
void | xxxMDIActivate (PWND pwnd, PWND pwndActivate) |
void | xxxMDINext (PWND pwndMDI, PWND pwnd, BOOL fPrevWindow) |
HWND | CreateMDIWindowA (LPCSTR pClassName, LPCSTR pWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HINSTANCE hModule, LPARAM lParam) |
HWND | CreateMDIWindowW (LPCWSTR pClassName, LPCWSTR pWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HINSTANCE hModule, LPARAM lParam) |
void | xxxMDIDestroy (PWND pwnd, HWND hwndVictim) |
LRESULT | MDIClientWndProcWorker (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam, DWORD fAnsi) |
LRESULT WINAPI | MDIClientWndProcA (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
LRESULT WINAPI | MDIClientWndProcW (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
LRESULT | DefFrameProcWorker (HWND hwnd, HWND hwndMDI, UINT wMsg, WPARAM wParam, LPARAM lParam, BOOL fAnsi) |
LRESULT WINAPI | DefFrameProcW (HWND hwnd, HWND hwndMDIClient, UINT message, WPARAM wParam, LPARAM lParam) |
LRESULT WINAPI | DefFrameProcA (HWND hwnd, HWND hwndMDIClient, UINT message, WPARAM wParam, LPARAM lParam) |
void | ChildMinMaxInfo (PWND pwnd, PMINMAXINFO pmmi) |
void | xxxChildResize (PWND pwnd, UINT wMode) |
LRESULT | DefMDIChildProcWorker (HWND hwnd, UINT wMsg, WPARAM wParam, LPARAM lParam, BOOL fAnsi) |
LRESULT WINAPI | DefMDIChildProcW (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
LRESULT WINAPI | DefMDIChildProcA (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL | MDICompleteChildCreation (HWND hwndChild, HMENU hSysMenu, BOOL fVisible, BOOL fDisabled) |
BOOL | CreateMDIChild (PSHORTCREATE psc, LPMDICREATESTRUCT pmcs, DWORD dwExpWinVerAndFlags, HMENU *phSysMenu, PWND pwndParent) |
|
Definition at line 18 of file mdiwin.c. Referenced by xxxSetFrameTitle(). |
|
|
|
Definition at line 181 of file mdiwin.c. Referenced by CalcClientScrolling(), and ScrollMDIChildren(). |
|
Definition at line 182 of file mdiwin.c. Referenced by CalcClientScrolling(), and ScrollMDIChildren(). |
|
Definition at line 17 of file mdiwin.c. Referenced by xxxSetFrameTitle(). |
|
|
|
Referenced by CascadeWindowsEnum(), and TileWindowsEnum(). |
|
Definition at line 711 of file mdiwin.c. References _GetDesktopWindow(), BuildHwndList(), tagARRANGEWINDOWSDATA::chwnd, tagARRANGEWINDOWSDATA::chwndReal, FALSE, tagARRANGEWINDOWSDATA::flags, tagARRANGEWINDOWSDATA::fVerifyParent, GRC_MINWNDS, GRC_SCROLLS, tagARRANGEWINDOWSDATA::hdwp, HW, tagARRANGEWINDOWSDATA::lprcParent, NtUserArrangeIconicWindows, NtUserBeginDeferWindowPos, NtUserEndDeferWindowPosEx(), NtUserEnumDisplayMonitors(), NULL, tagARRANGEWINDOWSDATA::phwnd, tagARRANGEWINDOWSDATA::pwndDesktop, tagARRANGEWINDOWSDATA::pwndParent, tagWND::rcClient, REBASEPWND, SYSMET, TRUE, tagARRANGEWINDOWSDATA::uGRCFlags, UnmaximizeChildWindows(), UserLocalFree, and ValidateHwnd. Referenced by CascadeWindows(), and TileWindows().
|
|
Definition at line 185 of file mdiwin.c. References FAR. Referenced by CalcClientScrolling().
|
|
Definition at line 200 of file mdiwin.c. References BOOL, BYTE, ByteOutsetRect(), CheckLock, ClearWindowState(), CopyRect, EqualRect, FALSE, FNID_DESKTOP, GETFNID, NtUserRedrawFrame, NtUserSetScrollInfo(), NULL, OffsetRect(), tagWND::rcClient, tagWND::rcWindow, REBASEPWND, SBJ_HORZ, SBJ_VERT, SetRectEmpty, SetWindowState(), SYSMET, TestWF, TRUE, UnionRect(), ValidateHwnd, WFHSCROLL, WFMAXIMIZED, WFMINIMIZED, WFVISIBLE, and WFVSCROLL. Referenced by MDIClientWndProcWorker(), and ScrollMDIChildren().
|
|
Definition at line 1061 of file mdiwin.c. References ArrangeWindows(), and CascadeWindowsEnum(). Referenced by CascadeChildWindows(), and MDIClientWndProcWorker().
|
|
Definition at line 927 of file mdiwin.c. References BOOL, BuildHwndList(), tagARRANGEWINDOWSDATA::chwnd, tagARRANGEWINDOWSDATA::chwndReal, DWORD, FALSE, tagARRANGEWINDOWSDATA::flags, tagARRANGEWINDOWSDATA::fVerifyParent, GetCascadeWindowPos(), GetParentArrangeRect(), tagARRANGEWINDOWSDATA::hdwp, HWq, NtUserDeferWindowPos(), NULL, PARRANGEWINDOWSDATA, tagARRANGEWINDOWSDATA::phwnd, tagARRANGEWINDOWSDATA::pwndDesktop, tagARRANGEWINDOWSDATA::pwndParent, REBASEPWND, TRUE, UserLocalAlloc, UserLocalFree, VALIDATEHMONITOR, and ValidatePositionableWindow(). Referenced by CascadeWindows().
|
|
Definition at line 2380 of file mdiwin.c. References _AdjustWindowRectEx(), _ScreenToClient(), CopyRect, FALSE, FNID_DESKTOP, GETFNID, tagWND::rcClient, REBASEPWND, and TestWF. Referenced by DefMDIChildProcWorker().
|
|
Definition at line 2794 of file mdiwin.c. References BOOL, CHILDSYSMENU, CKIDS, tagSHORTCREATE::cx, tagSHORTCREATE::cy, FALSE, FIRST, tagSHORTCREATE::hMenu, IsWindow(), L, MAXED, MDICheckCascadeRect(), NtUserMinMaximize(), NULL, PSHORTCREATE, SendMessage(), tagSHORTCREATE::style, TRUE, VER40, WS_MDIALLOWED, WS_MDISTYLE, tagSHORTCREATE::x, xxxLoadSysMenu(), and tagSHORTCREATE::y. Referenced by _CreateWindowEx().
|
|
Definition at line 1495 of file mdiwin.c. References LPVOID, NULL, and WS_EX_MDICHILD.
|
|
Definition at line 1514 of file mdiwin.c. References LPVOID, NULL, and WS_EX_MDICHILD.
|
|
Definition at line 2361 of file mdiwin.c. References DefFrameProcWorker(), and TRUE.
|
|
Definition at line 2350 of file mdiwin.c. References DefFrameProcWorker(), and FALSE.
|
|
Definition at line 2101 of file mdiwin.c. References ACTIVE, BOOL, CheckLock, CKIDS, ClearWindowState(), CopyInflateRect(), DefWindowProcWorker(), DialogBoxParamA(), DialogBoxParamW(), FALSE, FindPwndChild(), FIRST, GetWindowBorders(), GetWindowPlacement, hmodUser, HW, HWq, IDD_MDI_ACTIVATE, L, LOBYTE, MAXED, MAXITEMS, MDIActivateDlgProcA(), MDIActivateDlgProcW(), NtUserGetSystemMenu(), NtUserMoveWindow(), NtUserSetFocus(), NtUserSetSysMenu, NULL, PostMessage(), REBASE, RevalidateHmenu, SendMessage(), SetWindowState(), tagWND::spmenuSys, SYSMET, TestWF, ThreadLock, ThreadUnlock, TRUE, UINT, UserLocalFree, ValidateHwnd, WFBORDERMASK, WFCAPTION, WFMAXIMIZED, WFMINBOX, WFMINIMIZED, WFSYSMENU, xxxMNCanClose(), and xxxSetFrameTitle(). Referenced by DefFrameProcA(), and DefFrameProcW().
|
|
Definition at line 2726 of file mdiwin.c. References DefMDIChildProcWorker(), and TRUE.
|
|
Definition at line 2717 of file mdiwin.c. References DefMDIChildProcWorker(), and FALSE.
|
|
Definition at line 2531 of file mdiwin.c. References ACTIVE, CheckLock, ChildMinMaxInfo(), DefWindowProcWorker(), DIFFWOWHANDLE, DWORD, FALSE, FNID_MDICLIENT, GETFNID, GetMenu(), GetParent(), HW, hWnd, L, MAXED, ModifyMenuItem(), NtUserGetSystemMenu(), NULL, PostMessage(), REBASEPWND, RecalculateScrollRanges(), SAMEWOWHANDLE, SendMessage(), tagWND::spmenu, TestWF, ThreadLock, ThreadLockAlways, ThreadUnlock, TRUE, UINT, ValidateHwnd, WFMAXIMIZED, WINDOW, xxxChildResize(), xxxMDIActivate(), and xxxSetFrameTitle(). Referenced by DefMDIChildProcA(), and DefMDIChildProcW().
|
|
Definition at line 505 of file mdiwin.c. References SYSMET. Referenced by CascadeWindowsEnum(), and MDICheckCascadeRect().
|
|
Definition at line 833 of file mdiwin.c. References GetPrimaryMonitor(), GetRealClientRect(), GRC_MINWNDS, tagARRANGEWINDOWSDATA::lprcParent, tagARRANGEWINDOWSDATA::pwndParent, tagARRANGEWINDOWSDATA::uGRCFlags, and UINT. Referenced by CascadeWindowsEnum(), and TileWindowsEnum().
|
|
Definition at line 557 of file mdiwin.c. References CW2_USEDEFAULT, GetCascadeWindowPos(), GetRect(), GRECT_CLIENT, GRECT_CLIENTCOORDS, and ITILELEVEL. Referenced by CreateMDIChild().
|
|
Definition at line 2063 of file mdiwin.c. References MDIClientWndProcWorker(), NULL, TRUE, and ValidateHwnd. Referenced by ClientThreadSetup().
|
|
Definition at line 2078 of file mdiwin.c. References FALSE, MDIClientWndProcWorker(), NULL, and ValidateHwnd. Referenced by ClientThreadSetup(), and RW_RegisterControls().
|
|
Definition at line 1657 of file mdiwin.c. References _AdjustWindowRectEx(), _DefSetText(), ACTIVE, BOOL, CalcClientScrolling(), CALCSCROLL, CascadeWindows(), CheckLock, CKIDS, ClearWindowState(), DefWindowProcWorker(), DWORD, FALSE, FIRST, FNID_CLEANEDUP_BIT, FNID_MDICLIENT, GetMenuItemCount(), GWLP_MDIDATA, HAS_SBHORZ, HAS_SBVERT, HTITLE, HW, HWq, IsIconic(), IsMenu(), L, MAXED, MAXITEMS, MDI, MDIRemoveSysMenu(), MDISetMenu(), NtUserArrangeIconicWindows, NtUserChildWindowFromPointEx(), NtUserDeleteMenu(), NtUserGetSystemMenu(), NtUserMoveWindow(), NtUserSetFocus(), NtUserSetWindowFNID(), NtUserSetWindowLongPtr, NtUserSetWindowPos(), NtUserShowScrollBar(), NtUserShowWindow(), NtUserUpdateClientRect, NULL, PtoH, tagWND::rcClient, REBASE, REBASEPWND, RecalculateScrollRanges(), SAMEWOWHANDLE, SCROLL, SCROLLCOUNT, ScrollMDIChildren(), SCROLLSUPPRESS, SendMessage(), TestWF, TextAlloc(), ThreadLock, ThreadLockAlways, ThreadUnlock, TileWindows(), TRUE, UINT, Unlock, UserLocalAlloc, UserLocalFree, VALIDATECLASSANDSIZE, ValidateHwnd, WFHSCROLL, WFMAXBOX, WFMAXIMIZED, WFVSCROLL, WFWIN40COMPAT, WINDOW, WS_EX_MDICHILD, tagMDI::wScroll, xxxMDIDestroy(), xxxMDINext(), and xxxSetFrameTitle(). Referenced by ClientThreadSetup(), MDIClientWndProcA(), and MDIClientWndProcW().
|
|
Definition at line 2735 of file mdiwin.c. References ACTIVE, BOOL, CKIDS, FALSE, HW, HWq, ITILELEVEL, L, MAXITEMS, MDIAddSysMenu(), NtUserDestroyMenu(), NtUserRedrawFrame, NtUserSetSystemMenu(), NtUserSetWindowPos(), NtUserShowWindow(), PtoH, REBASE, REBASEPWND, SendMessage(), tagWND::spmenuSys, TestWF, TRUE, ValidateHwnd, WFMAXIMIZED, and WFMINIMIZED. Referenced by _CreateWindowEx().
|
|
Definition at line 483 of file mdiwin.c. References CALCSCROLL, HWq, L, PostMessage(), SCROLL, and SCROLLCOUNT. Referenced by DefMDIChildProcWorker(), MDIClientWndProcWorker(), xxxChildResize(), and xxxMDIDestroy().
|
|
Definition at line 463 of file mdiwin.c. References ScrollMDIChildren(), and VOID().
|
|
Definition at line 383 of file mdiwin.c. References CalcClientScrolling(), FALSE, GetScrollInfo(), NtUserScrollWindowEx(), NULL, SBJ_HORZ, SBJ_VERT, SetScrollPos(), SYSMET, and TRUE. Referenced by MDIClientWndProcWorker(), and ScrollChildren().
|
|
Definition at line 1217 of file mdiwin.c. References ArrangeWindows(), and TileWindowsEnum(). Referenced by MDIClientWndProcWorker(), and TileChildWindows().
|
|
Definition at line 1072 of file mdiwin.c. References tagARRANGEWINDOWSDATA::chwnd, tagARRANGEWINDOWSDATA::chwndReal, DWORD, FALSE, tagARRANGEWINDOWSDATA::flags, tagARRANGEWINDOWSDATA::fVerifyParent, GetParentArrangeRect(), tagARRANGEWINDOWSDATA::hdwp, NtUserDeferWindowPos(), NULL, PARRANGEWINDOWSDATA, tagARRANGEWINDOWSDATA::phwnd, tagARRANGEWINDOWSDATA::pwndDesktop, tagARRANGEWINDOWSDATA::pwndParent, TRUE, VALIDATEHMONITOR, and ValidatePositionableWindow(). Referenced by TileWindows().
|
|
Definition at line 96 of file mdiwin.c. References ACTIVE, BOOL, CheckLock, FALSE, FNID_MDICLIENT, GETFNID, GetKeyState(), IsWindowEnabled(), NULL, SendMessage(), TRUE, and ValidateHwndNoRip(). Referenced by WinMain().
|
|
Definition at line 603 of file mdiwin.c. References BOOL, BuildHwndList(), FALSE, GetDesktopWindow(), GetWindow(), NtUserGetForegroundWindow(), NtUserLockWindowUpdate(), NtUserSetWindowPos(), NtUserShowWindow(), NtUserShowWindowAsync(), NULL, RedrawWindow, TestWF, TRUE, UINT, UserLocalFree, ValidateHwnd, WFMAXIMIZED, and WFVISIBLE. Referenced by ArrangeWindows().
|
|
Definition at line 869 of file mdiwin.c. References _MonitorFromWindow(), NULL, REBASEPWND, TestWF, ValidateHwnd, WEFTOOLWINDOW, WEFTOPMOST, WFCPRESENT, WFDISABLED, WFMINIMIZED, WFSIZEBOX, and WFVISIBLE. Referenced by CascadeWindowsEnum(), and TileWindowsEnum().
|
|
Definition at line 2425 of file mdiwin.c. References CheckLock, FALSE, HWq, IsChild(), L, Lock, MAXED, MDIAddSysMenu(), MDIRemoveSysMenu(), NtUserMinMaximize(), NtUserQueryWindow(), NtUserSetSysMenu, NULL, OTHERMAXING, PtoH, REBASE, REBASEPWND, RecalculateScrollRanges(), SCROLL, SCROLLCOUNT, SendMessage(), tagWND::spwndOwner, SW_MDIRESTORE, TestWF, ThreadLock, ThreadLockAlways, ThreadUnlock, TRUE, Unlock, WFVISIBLE, wMode, tagMDI::wScroll, and xxxSetFrameTitle(). Referenced by DefMDIChildProcWorker().
|
|
Definition at line 1237 of file mdiwin.c. References ACTIVE, BOOL, CheckLock, CheckMenuItem(), FALSE, FindPwndChild(), FIRST, HW, HWq, L, Lock, MAXED, MAXITEMS, ModifyMenuItem(), NtUserCallHwndParam(), NtUserQueryWindow(), NtUserSetFocus(), NtUserSetWindowPos(), NtUserShowWindow(), NULL, REBASEPWND, SendMessage(), SetWindowLongPtr(), tagWND::spmenu, TestWF, ThreadLock, ThreadUnlock, TRUE, UINT, ValidateHwnd, WFDISABLED, WFFRAMEON, WFMAXBOX, WFNOANIMATE, WFWIN31COMPAT, WFWIN40COMPAT, and WINDOW. Referenced by DefMDIChildProcWorker(), and xxxMDIDestroy().
|
|
Definition at line 1540 of file mdiwin.c. References ACTIVE, CheckLock, CKIDS, FALSE, FIRST, HWq, L, MAXED, MDIRemoveSysMenu(), NtUserDestroyWindow(), NtUserRedrawFrame, NtUserShowWindow(), NULL, PtoH, REBASE, REBASEPWND, RecalculateScrollRanges(), SAMEWOWHANDLE, SendMessage(), ShiftMenuIDs(), tagWND::spmenu, tagWND::spwndOwner, TestWF, ThreadLock, ThreadUnlock, UINT, Unlock, ValidateHwnd, WFVISIBLE, xxxMDIActivate(), xxxMDINext(), and xxxSetFrameTitle(). Referenced by MDIClientWndProcWorker().
|
|
Definition at line 1420 of file mdiwin.c. References _GetWindow(), BOOL, CheckLock, FALSE, HW, HWq, MAXED, NtUserBeginDeferWindowPos, NtUserDeferWindowPos(), NtUserEndDeferWindowPosEx(), NtUserSetVisible, NtUserShowWindow(), REBASEPWND, SV_CLRFTRUEVIS, SV_UNSET, TestWF, TRUE, WFDISABLED, and WFVISIBLE. Referenced by MDIClientWndProcWorker(), and xxxMDIDestroy().
|
|
Definition at line 32 of file mdiwin.c. References _DefSetText(), CheckLock, FALSE, HTITLE, HW, IS_PTR, L, _LARGE_UNICODE_STRING::Length, MAX_TITLE_LEN, MAXED, NtUserRedrawFrame, NtUserRedrawFrameAndHook, NtUserRedrawTitle, NULL, REBASE, RtlInitLargeUnicodeString(), tagWND::strName, TextAlloc(), TextCopy(), TITLE_EXTRA, UINT, UserLocalFree, and ValidateHwnd. Referenced by DefFrameProcWorker(), DefMDIChildProcWorker(), MDIClientWndProcWorker(), xxxChildResize(), and xxxMDIDestroy().
|