[comp.sys.amiga] Help me to C.

pdermody@maths.tcd.ie (Paul Dermody) (02/28/89)

	Could someone out there in Amiga-land tell me how, if it is possible,
I can get a pointer to the current CLI window or WorkBench screen, in C.
	I am using Lattice C V4.0.
	I would also like to know exactly what Flags I must set in a window and
what message-class I must check for when I want to detect for either of the
mouse buttons being pressed. I have tried setting the MOUSEBUTTONS flag and
checking for a message of class SELECTUP, SELECTDOWN, MENUUP or MENUDOWN but
the computer just sits there grinning. I have overcome the problem
for now, by checking for window activation. Any help appreciated.
	Thanks in advance.
		
-- 
Paul Dermody: Mathsc.   | "An Irishman who doesn't drink. There's a turn up  
Trinity College, Dublin | for the books!": Light a penny candle, Maeve Binchy.
Ireland.                | "An Irishman who doesn't drink. Isn't that a
  Theorem: 26 + 6 = 1   |  Contradiction in terms?": Staten Island bouncer.

grwalter@watmath.waterloo.edu (Fred Walter) (03/03/89)

In article <624@maths.tcd.ie> pdermody@maths.tcd.ie (Paul Dermody) writes:
>	Could someone out there in Amiga-land tell me how, if it is possible,
>I can get a pointer to the current CLI window or WorkBench screen, in C.

There is an example on Fish disk 56 (ConPackets) that shows how to get
pointers to the conunit and window of the CLI that a program started up
in.

	fred