-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDrawing.cpp
More file actions
32 lines (26 loc) · 739 Bytes
/
Drawing.cpp
File metadata and controls
32 lines (26 loc) · 739 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
// Include StdAfx.h
#include "StdAfx.h"
#ifdef RUN_ONLY
/////////////////////////////
// RUNTIME drawing
// Draw: Construct calls this when it wants you to draw your object. You can
// leave it blank if your plugin doesn't draw anything. This is not called when OF_NODRAW is set.
void ExtObject::Draw()
{
// Don't draw anything
}
#else // RUN_ONLY
/////////////////////////////
// EDITTIME drawing
// Draw your object in the layout editor.
void EditExt::Draw()
{
RECT rc;
rc.left = pInfo->objectX;
rc.top = pInfo->objectY;
rc.right = pInfo->objectX + pInfo->objectWidth;
rc.bottom = pInfo->objectY + pInfo->objectHeight;
// Draw a simple rectangle
pEditTime->Box(rc, D3D_CONVERTCOLORREF(RGB(0, 0, 0)));
}
#endif // RUN_ONLY