forked from osoumen/C700
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyKnob.cpp
37 lines (30 loc) · 1 KB
/
MyKnob.cpp
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
/*
* CMyKnob.cpp
* C700
*
* Created by osoumen on 12/10/02.
* Copyright 2012 __MyCompanyName__. All rights reserved.
*
*/
#include "MyKnob.h"
//-----------------------------------------------------------------------------
CMyKnob::CMyKnob(const CRect& size, CControlListener* listener, long tag, CBitmap* background, CBitmap* handle, const CPoint& offset)
: CKnob(size, listener, tag, background, handle, offset)
{
}
//-----------------------------------------------------------------------------
CMyKnob::~CMyKnob()
{
}
//-----------------------------------------------------------------------------
void CMyKnob::drawHandle(CDrawContext* pContext)
{
CDrawMode oldDrawMode = pContext->getDrawMode();
CCoord oldLineWidth = pContext->getLineWidth();
pContext->setDrawMode(kAntialias);
pContext->setLineWidth(2);
CKnob::drawHandle( pContext );
pContext->setDrawMode(oldDrawMode);
pContext->setLineWidth(oldLineWidth);
}
//-----------------------------------------------------------------------------