| |
3 |
3 |
|
| |
4 |
4 |
|
| |
5 |
5 |
|
| |
6 |
6 |
|
| |
7 |
7 |
|
| |
8 |
8 |
|
| |
9 |
9 |
|
| |
10 |
10 |
|
| |
11 |
11 |
|
| |
12 |
12 |
|
| |
13 |
13 |
|
| |
14 |
14 |
|
| |
15 |
15 |
|
| |
16 |
16 |
|
| |
17 |
17 |
|
| |
18 |
18 |
|
| |
19 |
19 |
#include "stdafx.h" |
| |
20 |
20 |
#include "MiniViewDlg.h" |
| |
21 |
21 |
#include "ch.h" |
| |
22 |
22 |
#include <assert.h> |
| |
|
23 |
#include "MemDC.h" |
| |
23 |
24 |
|
| |
24 |
25 |
#ifdef _DEBUG |
| |
25 |
26 |
#define new DEBUG_NEW |
| |
26 |
27 |
#undef THIS_FILE |
| |
27 |
28 |
static char THIS_FILE[] = __FILE__; |
| |
28 |
29 |
#endif |
| |
29 |
30 |
|
| |
30 |
31 |
#define WM_INITDATA WM_USER+5 |
| |
31 |
32 |
|
| |
32 |
33 |
static const int sg_iMargin=7; |
| |
33 |
34 |
|
| |
34 |
35 |
#define ROUND(val) ( ( (val)-static_cast<int>(val) > 0.5 ) ? static_cast<int>(val)+1 : static_cast<int>(val) ) |
| |
35 |
36 |
#undef ROUNDUP // from other module |
| |
36 |
37 |
#define ROUNDUP(val, to) ( (static_cast<int>((val)/(to))+1 )*(to) ) |
| |
37 |
38 |
|
| |
38 |
39 |
bool CMiniViewDlg::m_bLock=false; |
| |
39 |
40 |
|
| |
40 |
41 |
|
| |
41 |
42 |
|
| |
42 |
43 |
|