40 return self->
OnCompareItems(
reinterpret_cast<T *
>(p1),
reinterpret_cast<T *
>(p2));
284 currentRect = parentRect;
289 currentRect.
right = currentRect.
left + szCurrent.
cx;
292 currentRect.
left = parentRect.
left + (szParent.
cx - szCurrent.
cx) / 2;
293 currentRect.
right = currentRect.
left + szCurrent.
cx;
296 currentRect.
left = currentRect.
right - szCurrent.
cx;
305 currentRect.
bottom = currentRect.
top + szCurrent.
cy;
308 currentRect.
top = parentRect.
top + (szParent.
cy - szCurrent.
cy) / 2;
309 currentRect.
bottom = currentRect.
top + szCurrent.
cy;
312 currentRect.
top = currentRect.
bottom - szCurrent.
cy;
318 *newRect = currentRect;
433 box->ComputeContentBounds(
rect);
447 count +=
box->CountSizableChildren();
464 rect.right = preferredWidth;
465 rect.bottom = preferredHeight;
474 hDwp =
box->OnParentSize(
rect, hDwp);
532 return ::DeferWindowPos(
548 TabOrderList.
Add(T::m_hWnd);
563 INT length = CWindow::GetWindowTextLengthW() + 1;
564 CWindow::GetWindowTextW(szText.GetBuffer(
length),
length);
565 szText.ReleaseBuffer();
675 rect.right = preferredWidth;
676 rect.bottom = preferredHeight;
703 else if (growth.
cy < 0)
730 else if (growth.
cx < 0)
static INT CALLBACK s_OnCompareItems(PVOID p1, PVOID p2, LPARAM lParam)
INT Search(T *item, INT iStart, UINT uFlags)
static INT CALLBACK s_OnRemoveItem(PVOID ptr, PVOID context)
virtual BOOL OnRemoveItem(T *ptr)
virtual INT OnCompareItems(T *p1, T *p2)
INT IndexOf(T *ptr) const
INT Insert(INT at, T *ptr)
virtual DWORD_PTR CountSizableChildren()
virtual VOID ComputeRect(RECT parentRect, RECT currentRect, RECT *newRect)
virtual VOID ComputeMinimalSize(SIZE *size)
CUiAlignment m_HorizontalAlignment
CUiAlignment m_VerticalAlignment
virtual VOID ComputeContentBounds(RECT *rect)
virtual HDWP OnParentSize(RECT parentRect, HDWP hDwp)
virtual BOOL OnRemoveItem(CUiPrimitive *ptr)
CUiCollection & Children()
CUiMargin(INT horz, INT vert)
static CUiMeasure FitParent()
static CUiMeasure FitContent()
static CUiMeasure Fixed(INT pixels)
static CUiMeasure Percent(INT percent)
CUiMeasure(MeasureType type, INT value)
INT ComputeMeasure(INT parent, INT content)
virtual DWORD_PTR CountSizableChildren()
virtual VOID ComputeMinimalSize(SIZE *size)
virtual HDWP OnParentSize(RECT parentRect, HDWP hDwp)
virtual VOID ComputeContentBounds(RECT *rect)
CUiRect(INT l, INT t, INT r, INT b)
virtual DWORD_PTR CountSizableChildren()
virtual VOID ComputeContentBounds(RECT *rect)
virtual HDWP OnParentSize(RECT parentRect, HDWP hDwp)
static const INT THICKNESS
virtual VOID ComputeMinimalSize(SIZE *size)
HWND Create(HWND hwndParent)
BOOL ProcessWindowMessage(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT &theResult, DWORD dwMapId)
VOID GetWindowTextW(CStringW &szText)
virtual VOID AppendTabOrderWindow(int Direction, ATL::CSimpleArray< HWND > &TabOrderList)
virtual VOID ComputeMinimalSize(SIZE *size)
virtual HDWP OnParentSize(RECT parentRect, HDWP hDwp)
virtual VOID ComputeContentBounds(RECT *rect)
virtual DWORD_PTR CountSizableChildren()
BOOL WINAPI DPA_Sort(HDPA hdpa, PFNDPACOMPARE pfnCompare, LPARAM lParam)
INT WINAPI DPA_Search(HDPA hdpa, LPVOID pFind, INT nStart, PFNDPACOMPARE pfnCompare, LPARAM lParam, UINT uOptions)
BOOL WINAPI DPA_SetPtr(HDPA hdpa, INT i, LPVOID p)
BOOL WINAPI DPA_DeleteAllPtrs(HDPA hdpa)
VOID WINAPI DPA_EnumCallback(HDPA hdpa, PFNDPAENUMCALLBACK enumProc, LPVOID lParam)
INT WINAPI DPA_GetPtrIndex(HDPA hdpa, LPCVOID p)
void WINAPI DPA_DestroyCallback(HDPA hdpa, PFNDPAENUMCALLBACK enumProc, LPVOID lParam)
LPVOID WINAPI DPA_DeletePtr(HDPA hdpa, INT i)
HDPA WINAPI DPA_Create(INT nGrow)
INT WINAPI DPA_InsertPtr(HDPA hdpa, INT i, LPVOID p)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
GLuint GLuint GLsizei GLenum type
GLuint GLuint GLsizei count
GLdouble GLdouble GLdouble r
GLdouble GLdouble GLdouble GLdouble top
GLboolean GLboolean GLboolean b
GLuint GLsizei GLsizei * length
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
#define WS_EX_TRANSPARENT
#define DPA_GetPtrCount(hdpa)
WDF_EXTERN_C_START typedef _In_ WDFDEVICE _In_ WDFCONTEXT _In_ WDF_DMA_DIRECTION Direction
HWND WINAPI SetCapture(_In_ HWND hWnd)
BOOL WINAPI ReleaseCapture(void)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
HWND WINAPI GetCapture(void)
BOOL WINAPI EndDeferWindowPos(_In_ HDWP)
HWND WINAPI GetParent(_In_ HWND)
HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
HDWP WINAPI BeginDeferWindowPos(_In_ int)
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)