windows-nt/Source/XPSP1/NT/sdktools/mtscript/inc/resizer.h
2020-09-26 16:20:57 +08:00

50 lines
964 B
C++

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1999
//
// File: resizer.h
//
// Contents: Dialog resizer class
//
//----------------------------------------------------------------------------
#ifndef RESIZER_H
#define RESIZER_H
struct CResizeInfo
{
UINT _id;
int _Flags;
RECT _Rect;
};
class CResizer
{
public:
enum sizeflags
{
sf_Width = 0x01,
sf_Height = 0x02,
sf_Left = 0x04,
sf_Top = 0x08,
sf_HalfLeftWidth = 0x10,
sf_HalfTopHeight = 0x20,
sf_HalfWidth = 0x40,
sf_HalfHeight = 0x80
};
CResizer();
~CResizer();
void Init(HWND win, CResizeInfo *pResizeInfo);
void NewSize() const;
private:
HWND _hWnd;
RECT _winRect;
CResizeInfo *_pResizeInfo;
void InitCtrl(CResizeInfo *p);
};
#endif