-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathResizeControl.h
More file actions
37 lines (31 loc) · 928 Bytes
/
Copy pathResizeControl.h
File metadata and controls
37 lines (31 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// ResizeControl.h: interface for the CResizeControl class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_RESIZECONTROL_H__5F3BB72F_1190_4B42_A57A_3BFC83AFC3C3__INCLUDED_)
#define AFX_RESIZECONTROL_H__5F3BB72F_1190_4B42_A57A_3BFC83AFC3C3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "afxtempl.h"
typedef struct _tagResize
{
UINT ID;
CRect rt;
int type1;
int type2;
}tagResize;
enum{PK_TOP_LEFT,PK_TOP_RIGHT,PK_BOTTOM_LEFT,PK_BOTTOM_RIGHT};
class CResizeControl
{
public:
void SetResize(UINT ID,int type1,int type2);
void OnSize(int cx,int cy);
void SetOwner(CWnd *pWnd);
CResizeControl();
virtual ~CResizeControl();
private:
CWnd *m_pWnd;
CArray <tagResize, tagResize>m_arrResize;
CRect m_rtParent;
};
#endif // !defined(AFX_RESIZECONTROL_H__5F3BB72F_1190_4B42_A57A_3BFC83AFC3C3__INCLUDED_)