latest SDK

This commit is contained in:
2021-12-14 00:28:25 -07:00
commit 68b10d413b
492 changed files with 80542 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include "WindowPositionUtils.h"
#include <libPPUI/CDialogResizeHelper.h>
template<typename TTracker> class CDialogResizeHelperTracking : public CDialogResizeHelper {
public:
template<typename TParam, t_size paramCount, typename TCfgVar> CDialogResizeHelperTracking(const TParam (& src)[paramCount],CRect const& minMaxRange, TCfgVar & cfgVar) : CDialogResizeHelper(src, minMaxRange), m_tracker(cfgVar) {}
BEGIN_MSG_MAP_EX(CDialogResizeHelperST)
CHAIN_MSG_MAP(CDialogResizeHelper)
CHAIN_MSG_MAP_MEMBER(m_tracker)
END_MSG_MAP()
private:
TTracker m_tracker;
};
typedef CDialogResizeHelperTracking<cfgDialogSizeTracker> CDialogResizeHelperST;
typedef CDialogResizeHelperTracking<cfgDialogPositionTracker> CDialogResizeHelperPT;
typedef CDialogResizeHelperTracking<cfgWindowSizeTracker2> CDialogResizeHelperST2;
#define REDRAW_DIALOG_ON_RESIZE() if (uMsg == WM_SIZE) RedrawWindow(NULL, NULL, RDW_INVALIDATE | RDW_ERASE | RDW_ALLCHILDREN);