home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
MAGAZINE
/
DDJMAG
/
DDJ8910.ZIP
/
BERGMAN.LST
next >
Wrap
File List
|
1989-09-07
|
716b
|
36 lines
_A First Look At CommonView_
by Noel J. Bergman
[LISTING ONE]
#include <CommonVu.hxx>
class DoodleWind : public TopAppWindow
{
Point LastPt;
protected:
long far MouseDrag ( MouseEvt );
long far MouseButtonDn ( MouseEvt );
};
void App::far Start()
{
DoodleWind Doodle;
Doodle.EnableSysMenu ();
Doodle.EnableBorder ();
Doodle.SetCaption ( "Doodle" );
Doodle.Show ();
Exec ();
}
long DoodleWind::far MouseButtonDn ( MouseEvt Evt )
{
LastPt = Evt.Where ();
}
long DoodleWind::far MouseDrag ( MouseEvt Evt )
{
MoveTo ( LastPt );
LineTo ( LastPt = Evt.Where ());
}