LWQ
2025-07-14 aef42eef51d1b86ac7217a88ce17c5156c30fe6d
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
 
// EdgeInspector_AppDoc.cpp : CEdgeInspector_AppDoc Å¬·¡½ºÀÇ ±¸Çö
//
 
#include "stdafx.h"
// SHARED_HANDLERS´Â ¹Ì¸® º¸±â, Ãà¼ÒÆÇ ±×¸² ¹× °Ë»ö ÇÊÅ͠󸮱⸦ ±¸ÇöÇϴ ATL ÇÁ·ÎÁ§Æ®¿¡¼­ Á¤ÀÇÇÒ ¼ö ÀÖÀ¸¸ç
// ÇØ´ç ÇÁ·ÎÁ§Æ®¿Í ¹®¼­ Äڵ带 °øÀ¯Çϵµ·Ï ÇØ ÁÝ´Ï´Ù.
#ifndef SHARED_HANDLERS
#include "EdgeInspector_App.h"
#endif
 
#include "EdgeInspector_AppDoc.h"
 
#include <propkey.h>
 
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
 
// CEdgeInspector_AppDoc
 
IMPLEMENT_DYNCREATE(CEdgeInspector_AppDoc, CDocument)
 
BEGIN_MESSAGE_MAP(CEdgeInspector_AppDoc, CDocument)
END_MESSAGE_MAP()
 
 
// CEdgeInspector_AppDoc »ý¼º/¼Ò¸ê
 
CEdgeInspector_AppDoc::CEdgeInspector_AppDoc()
{
    // TODO: ¿©±â¿¡ ÀÏȸ¼º »ý¼º Äڵ带 Ãß°¡ÇÕ´Ï´Ù.
 
}
 
CEdgeInspector_AppDoc::~CEdgeInspector_AppDoc()
{
}
 
BOOL CEdgeInspector_AppDoc::OnNewDocument()
{
    if (!CDocument::OnNewDocument())
        return FALSE;
 
    // TODO: ¿©±â¿¡ ÀçÃʱâÈ­ Äڵ带 Ãß°¡ÇÕ´Ï´Ù.
    // SDI ¹®¼­´Â ÀÌ ¹®¼­¸¦ ´Ù½Ã »ç¿ëÇÕ´Ï´Ù.
 
    return TRUE;
}
 
 
 
 
// CEdgeInspector_AppDoc serialization
 
void CEdgeInspector_AppDoc::Serialize(CArchive& ar)
{
    if (ar.IsStoring())
    {
        // TODO: ¿©±â¿¡ ÀúÀå Äڵ带 Ãß°¡ÇÕ´Ï´Ù.
    }
    else
    {
        // TODO: ¿©±â¿¡ ·Îµù Äڵ带 Ãß°¡ÇÕ´Ï´Ù.
    }
}
 
#ifdef SHARED_HANDLERS
 
// Ãà¼ÒÆÇ ±×¸²À» Áö¿øÇÕ´Ï´Ù.
void CEdgeInspector_AppDoc::OnDrawThumbnail(CDC& dc, LPRECT lprcBounds)
{
    // ¹®¼­ÀÇ µ¥ÀÌÅ͸¦ ±×¸®·Á¸é ÀÌ Äڵ带 ¼öÁ¤ÇϽʽÿÀ.
    dc.FillSolidRect(lprcBounds, RGB(255, 255, 255));
 
    CString strText = _T("TODO: implement thumbnail drawing here");
    LOGFONT lf;
 
    CFont* pDefaultGUIFont = CFont::FromHandle((HFONT) GetStockObject(DEFAULT_GUI_FONT));
    pDefaultGUIFont->GetLogFont(&lf);
    lf.lfHeight = 36;
 
    CFont fontDraw;
    fontDraw.CreateFontIndirect(&lf);
 
    CFont* pOldFont = dc.SelectObject(&fontDraw);
    dc.DrawText(strText, lprcBounds, DT_CENTER | DT_WORDBREAK);
    dc.SelectObject(pOldFont);
}
 
// °Ë»ö Ã³¸®±â¸¦ Áö¿øÇÕ´Ï´Ù.
void CEdgeInspector_AppDoc::InitializeSearchContent()
{
    CString strSearchContent;
    // ¹®¼­ÀÇ µ¥ÀÌÅÍ¿¡¼­ °Ë»ö ÄÜÅÙÃ÷¸¦ ¼³Á¤ÇÕ´Ï´Ù.
    // ÄÜÅÙÃ÷ ºÎºÐÀº ";"·Î ±¸ºÐµÇ¾î¾ß ÇÕ´Ï´Ù.
 
    // ¿¹: strSearchContent = _T("point;rectangle;circle;ole object;");
    SetSearchContent(strSearchContent);
}
 
void CEdgeInspector_AppDoc::SetSearchContent(const CString& value)
{
    if (value.IsEmpty())
    {
        RemoveChunk(PKEY_Search_Contents.fmtid, PKEY_Search_Contents.pid);
    }
    else
    {
        CMFCFilterChunkValueImpl *pChunk = NULL;
        ATLTRY(pChunk = new CMFCFilterChunkValueImpl);
        if (pChunk != NULL)
        {
            pChunk->SetTextValue(PKEY_Search_Contents, value, CHUNK_TEXT);
            SetChunkValue(pChunk);
        }
    }
}
 
#endif // SHARED_HANDLERS
 
// CEdgeInspector_AppDoc Áø´Ü
 
#ifdef _DEBUG
void CEdgeInspector_AppDoc::AssertValid() const
{
    CDocument::AssertValid();
}
 
void CEdgeInspector_AppDoc::Dump(CDumpContext& dc) const
{
    CDocument::Dump(dc);
}
#endif //_DEBUG
 
 
// CEdgeInspector_AppDoc ¸í·É