#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 136 of file layout.h.
137{
142 return;
143
145
146 for (iItem = 0; iItem <
pData->m_cLayouts; ++iItem)
148
151}
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 107 of file layout.h.
109{
110 RECT rcChild, NewRect, rcPercents;
111 LONG nWidth, nHeight;
112
114 return hDwp;
116
117 nWidth = rcClient->
right - rcClient->
left;
118 nHeight = rcClient->
bottom - rcClient->
top;
119
125
127 {
131 }
132 return hDwp;
133}
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()
static __inline void _layout_GetPercents |
( |
LPRECT |
prcPercents, |
|
|
UINT |
uEdges |
|
) |
| |
|
static |
◆ _layout_InitLayouts()
Definition at line 154 of file layout.h.
155{
156 RECT rcClient, rcChild, rcPercents;
157 LONG nWidth, nHeight;
159
162 nHeight = rcClient.
bottom - rcClient.
top;
163
164 for (iItem = 0; iItem <
pData->m_cLayouts; ++iItem)
165 {
168 {
171 continue;
172 }
173
176
182 }
183}
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()
static __inline HDWP _layout_MoveGrip |
( |
LAYOUT_DATA * |
pData, |
|
|
HDWP hDwp |
OPTIONAL |
|
) |
| |
|
static |
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 199 of file layout.h.
200{
203}
static __inline void _layout_ModifySystemMenu(LAYOUT_DATA *pData, BOOL bEnableResize)
static __inline void LayoutShowGrip(LAYOUT_DATA *pData, BOOL bShow)
◆ LayoutInit()
Definition at line 206 of file layout.h.
207{
212 {
215 }
216
217 if (cLayouts < 0)
218 {
219 cLayouts = -cLayouts;
221 }
222 else
223 {
225 }
226
228 pData->m_cLayouts = cLayouts;
231 {
235 }
237
239
241
243 if (bShowGrip)
245
248}
static __inline void _layout_InitLayouts(LAYOUT_DATA *pData)
#define memcpy(s1, s2, n)
static HMODULE MODULEINFO DWORD cb
BOOL WINAPI IsWindow(_In_opt_ HWND)
◆ 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 {
90 0, 0, 0, 0,
pData->m_hwndParent,
92 }
95}
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 187 of file layout.h.
188{
193 return;
196}
static __inline void _layout_ArrangeLayout(LAYOUT_DATA *pData)
#define UNREFERENCED_PARAMETER(P)