-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathSeparatorLine.cpp
More file actions
30 lines (26 loc) · 805 Bytes
/
SeparatorLine.cpp
File metadata and controls
30 lines (26 loc) · 805 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
/*
* SeparatorLine.cpp
* C700
*
* Created by osoumen on 12/10/05.
* Copyright 2012 __MyCompanyName__. All rights reserved.
*
*/
#include "SeparatorLine.h"
const CColor kSeparatorColor = {96, 96, 96, 255};
//-----------------------------------------------------------------------------
CSeparatorLine::CSeparatorLine(const CRect& size, CControlListener* listener, long tag, CBitmap* pBackground)
: CControl(size, listener, tag, pBackground)
{
}
//-----------------------------------------------------------------------------
void CSeparatorLine::draw(CDrawContext* pContext)
{
//‹æØ‚èü‚ð•`‚
pContext->setFrameColor(kSeparatorColor);
CPoint point(0,getHeight()/2);
point.offset(size.left, size.top);
pContext->moveTo(point);
point.offset(getWidth(), 0);
pContext->lineTo(point);
}