-
Notifications
You must be signed in to change notification settings - Fork 0
/
NEWCTEVT.CPP
39 lines (34 loc) · 1.62 KB
/
NEWCTEVT.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
38
/***************************************************************/
/* Filename: newctevt.cpp */
/* */
/* Purpose: Definition od NewControlEvent class. */
/* */
/* Program name: cppctl.exe Title: C++ PM Control Test App */
/* OS/2 Developer Magazine, Issue: Sept. '94, page */
/* Article title: Writing OS/2 PM Controls in C++ */
/* Authors: Eric Snell and Lori Ruffing */
/* */
/* Description: This example shows how to implement an OS/2 PM */
/* control window in C++. */
/* */
/* Program Requirements: This example requires the IBM C Set++ */
/* compiler and libraries. */
/***************************************************************/
#include "newctevt.hpp"
NewControlEvent::NewControlEvent(IEvent &evt)
: MControlEvent(evt)
{
}
NewControlEvent::~NewControlEvent()
{
}
//----------------------------------------------------------------------------
// Method: NewControlEvent::mouseNumber
//
// Description: 'mouseNumber' returns the number of the mouse button that
// was clicked.
//----------------------------------------------------------------------------
IMouseClickEvent::MouseNumber NewControlEvent::mouseNumber() const
{
return IMouseClickEvent::MouseNumber(parameter1().number2());
}