Пример #1
0
static void hb_gt_os2_mouse_Hide( PHB_GT pGT )
{
   /*
      NOTE: mouse cursor always visible if not in full screen
    */
   HB_SYMBOL_UNUSED( pGT );

   if( s_uMouHandle )
   {
      NOPTRRECT rect;
      VIOMODEINFO vi;                           /* needed to get max Row/Col */

      /*
         QUESTION: should I call the GT MaxRow/Col function ?
         pro: encapsulating of the GetScreen function
         con: calling function from another module, GT must be linked in
         con: VioGetMode is been called twice
       */
      vi.cb = sizeof( vi );
      VioGetMode( &vi, 0 );
      rect.row  = 0;                            /* x-coordinate upper left */
      rect.col  = 0;                            /* y-coordinate upper left */
      rect.cRow = vi.row - 1;                   /* x-coordinate lower right */
      rect.cCol = vi.col - 1;                   /* y-coordinate lower right */
      MouRemovePtr( &rect, s_uMouHandle );
   }
}
Пример #2
0
    /*
     * Hide mouse cursor.
     */
    static void
    hidemouse()
    {
	NOPTRRECT	r;

	r.row = r.col = 0;
	r.cRow = Rows - 1;
	r.cCol = Columns - 1;
	(void) MouRemovePtr((PNOPTRRECT) &r, mousenum);
    }
Пример #3
0
static void DrawMouse(int Show) {
  if (!MousePresent) return;

  if (Show == 1) {
    MouDrawPtr(MouseHandle);
  } else {
    NOPTRRECT npr;
    int W, H;

    npr.row = 0;
    npr.col = 0;
    ConQuerySize(&W, &H);
    npr.cCol = (USHORT)(W - 1);
    npr.cRow = (USHORT)(H - 1);
    MouRemovePtr(&npr, MouseHandle);
  }
}