#include <assert.h>
Go to the source code of this file.
|
static __inline void | _layout_ModifySystemMenu (LAYOUT_DATA *pData, BOOL bEnableResize) |
|
static __inline HDWP | _layout_MoveGrip (LAYOUT_DATA *pData, HDWP hDwp OPTIONAL) |
|
static __inline void | LayoutShowGrip (LAYOUT_DATA *pData, BOOL bShow) |
|
static __inline void | _layout_GetPercents (LPRECT prcPercents, UINT uEdges) |
|
static __inline HDWP | _layout_DoMoveItem (LAYOUT_DATA *pData, HDWP hDwp, const LAYOUT_INFO *pLayout, const RECT *rcClient) |
|
static __inline void | _layout_ArrangeLayout (LAYOUT_DATA *pData) |
|
static __inline void | _layout_InitLayouts (LAYOUT_DATA *pData) |
|
static __inline void | LayoutUpdate (HWND ignored1, LAYOUT_DATA *pData, LPCVOID ignored2, UINT ignored3) |
|
static __inline void | LayoutEnableResize (LAYOUT_DATA *pData, BOOL bEnable) |
|
static __inline LAYOUT_DATA * | LayoutInit (HWND hwndParent, const LAYOUT_INFO *pLayouts, INT cLayouts) |
|
static __inline void | LayoutDestroy (LAYOUT_DATA *pData) |
|
◆ LAYOUT_DATA
◆ LAYOUT_INFO
◆ _layout_ArrangeLayout()
Definition at line 137 of file layout.h.
138{
143 return;
144
146
147 for (iItem = 0; iItem <
pData->m_cLayouts; ++iItem)
149
152}
static __inline HDWP _layout_DoMoveItem(LAYOUT_DATA *pData, HDWP hDwp, const LAYOUT_INFO *pLayout, const RECT *rcClient)
static __inline HDWP _layout_MoveGrip(LAYOUT_DATA *pData, HDWP hDwp OPTIONAL)
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
BOOL WINAPI EndDeferWindowPos(_In_ HDWP)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HDWP WINAPI BeginDeferWindowPos(_In_ int)
Referenced by LayoutUpdate().
◆ _layout_DoMoveItem()
Definition at line 108 of file layout.h.
110{
111 RECT rcChild, NewRect, rcPercents;
112 LONG nWidth, nHeight;
113
115 return hDwp;
117
118 nWidth = rcClient->
right - rcClient->
left;
119 nHeight = rcClient->
bottom - rcClient->
top;
120
126
128 {
132 }
133 return hDwp;
134}
static __inline void _layout_GetPercents(LPRECT prcPercents, UINT uEdges)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
BOOL WINAPI EqualRect(_In_ LPCRECT, _In_ LPCRECT)
Referenced by _layout_ArrangeLayout().
◆ _layout_GetPercents()
◆ _layout_InitLayouts()
Definition at line 155 of file layout.h.
156{
157 RECT rcClient, rcChild, rcPercents;
158 LONG nWidth, nHeight;
160
163 nHeight = rcClient.
bottom - rcClient.
top;
164
165 for (iItem = 0; iItem <
pData->m_cLayouts; ++iItem)
166 {
169 {
172 continue;
173 }
174
177
183 }
184}
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
Referenced by LayoutInit().
◆ _layout_ModifySystemMenu()
Definition at line 26 of file layout.h.
27{
28 if (bEnableResize)
29 {
31 }
32 else
33 {
38 }
39}
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
HMENU WINAPI GetSystemMenu(_In_ HWND, _In_ BOOL)
BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
Referenced by LayoutEnableResize().
◆ _layout_MoveGrip()
Definition at line 42 of file layout.h.
43{
45 return hDwp;
46
51
52 if (hDwp)
53 {
57 }
58 else
59 {
63 }
64 return hDwp;
65}
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOOWNERZORDER
BOOL WINAPI IsWindowVisible(_In_ HWND)
int WINAPI GetSystemMetrics(_In_ int)
Referenced by _layout_ArrangeLayout(), and LayoutShowGrip().
◆ LayoutDestroy()
◆ LayoutEnableResize()
Definition at line 200 of file layout.h.
201{
204}
static __inline void _layout_ModifySystemMenu(LAYOUT_DATA *pData, BOOL bEnableResize)
static __inline void LayoutShowGrip(LAYOUT_DATA *pData, BOOL bShow)
◆ LayoutInit()
Definition at line 207 of file layout.h.
208{
213 {
216 }
217
218 if (cLayouts < 0)
219 {
220 cLayouts = -cLayouts;
222 }
223 else
224 {
226 }
227
229 pData->m_cLayouts = cLayouts;
232 {
236 }
238
240
242
244 if (bShowGrip)
246
249}
static __inline void _layout_InitLayouts(LAYOUT_DATA *pData)
#define memcpy(s1, s2, n)
static HMODULE MODULEINFO DWORD cb
BOOL WINAPI IsWindow(_In_opt_ HWND)
Referenced by BrFolder_OnInitDialog().
◆ LayoutShowGrip()
Definition at line 68 of file layout.h.
69{
74 if (
style != new_style)
75 {
78 }
79
80 if (!bShow)
81 {
83 return;
84 }
85
87 {
88
91 0, 0, 0, 0,
pData->m_hwndParent,
93 }
96}
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
#define GetWindowLongPtrW
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define SW_SHOWNOACTIVATE
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
#define SetWindowLongPtrW
Referenced by LayoutEnableResize(), and LayoutInit().
◆ LayoutUpdate()
Definition at line 188 of file layout.h.
189{
194 return;
197}
static __inline void _layout_ArrangeLayout(LAYOUT_DATA *pData)
#define UNREFERENCED_PARAMETER(P)
Referenced by BrFolderDlgProc().