[alt.msdos.programmer] Mouse Programming problem

boerio@orchestra.ecn.purdue.edu (Jeff Boerio) (06/17/90)

I am trying to write my own package that uses a mouse.  I've picked up
Microsoft's Mouse Programmer's Guide, and sat down to work.  Here's the
general following of my program:

	_setvideomode (_HRESBW);
	.
	.
	.
	m1 = 1;
	m2 = 0;
	m3 = m4 = 100;
	cmousem (&m1, &m2, &m3, &m4);
	m1 = 3;
	m2 = 0;
	while (m2 != 1) {
		cmousem (&m1, &m2, &m3, &m4);
		.
		.
	}

Now, I compiled it using the medium model (since I used cmousem), and
everything worked fine.  The only problem is, I cannot see the cursor.
Now, the first cmousem call should show the cursor, and the second just
retrieves the position of the mouse until the left mouse button is
pressed.

The second call works fine.  It retrieves the position, as best I can tell
without seeing the cursor (I have _outtext() tell me the position of the
mouse cursor.

Can someone tell me how to display the cursor?!  I can't seem to figure it
out.  If I use _displaycursor(_GCURSORON), that doesn't help.  All help is
appreciated!

     - Jeff

--
Jeff Boerio (boerio@orchestra.ecn.purdue.edu)
Purdue University ECN Software Support Programmer
Rush Bitmap Mail Service Available: Send mail with subject of "rush bitmaps", 
	with body containing the word help for more info to above address