Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.os2.programmer.misc > #1591

Re: C: How to place mouse pointer?

From Andreas Kohl <ak120@arcor.de>
Newsgroups comp.os.os2.programmer.misc
Subject Re: C: How to place mouse pointer?
Date 2017-07-31 19:56 +0200
Organization albasani.net
Message-ID <olnr25$8cp$1@news.albasani.net> (permalink)
References <olninr$pl8$1@news.albasani.net>

Show all headers | View raw


Andreas Schnellbacher schrieb:
> Hi.
>
> during NEPMD development I wanted to place the mouse pointer:
>
> For Sh+F10 (CUA definition for open popup menu), the pointer position
> decides which of the three popup menus should be opened: mark exists
> and pointer is within the mark, mark exists and pointer is outside
> of the mark, no mark exists.
>
> Setting the cursor to the mouse pointer would be easy. There exist map
> functions. But I can't find anything about setting the mouse pointer to
> the cursor position or to any other position.
>
> It would be nice if someone could provide a code snippet or point me to
> the C function I have to use.

I doubt that any C library function can be utilised. For PM programs you 
could call WinQueryCursorInfo an give the x/y values from CURSORINFO 
later to WinSetPointerPos.

--
Andreas

Back to comp.os.os2.programmer.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

C: How to place mouse pointer? Andreas Schnellbacher <aschn@despammed.com> - 2017-07-31 17:35 +0200
  Re: C: How to place mouse pointer? Andreas Schnellbacher <aschn@despammed.com> - 2017-07-31 19:55 +0200
    Re: C: How to place mouse pointer? Andreas Schnellbacher <aschn@despammed.com> - 2017-07-31 20:28 +0200
  Re: C: How to place mouse pointer? Andreas Kohl <ak120@arcor.de> - 2017-07-31 19:56 +0200
    Re: C: How to place mouse pointer? Andreas Schnellbacher <aschn@despammed.com> - 2017-07-31 20:14 +0200

csiph-web