Re: hWnd of cursor

new topic     » goto parent     » topic index » view thread      » older message » newer message

This is found in the Win32 API help file (found in the archive):

About Carets
--------------

An application uses the CreateCaret function to specify the parameters for a
caret. Windows
forms a caret by inverting the pixel color within the rectangle specified by the
caret's
position, width, and height. The width and height are specified in logical
units; therefore, the
appearance of a caret is subject to the window's mapping mode.

After the caret is defined, an application uses the ShowCaret function to make
the caret
visible. When the caret appears, it automatically begins flashing. To display a
solid caret,
Windows inverts every pixel in the rectangle; to display a gray caret, Windows
inverts every
other pixel; to display a bitmap caret, Windows inverts only the white bits of
the bitmap.
The elapsed time, in milliseconds, required to invert the caret is called the
blink time. An
application can determine the caret's blink time by using the GetCaretBlinkTime
function. If it
is necessary to define a specific blink time, use the SetCaretBlinkTime function
to set the rate
of the blink time to a specified number of milliseconds. The flash time is the
elapsed time, in
milliseconds, required to display, invert, and restore the caret's display. The
flash time of a
caret is twice as much as the blink time.

An application can determine the caret's position by using the GetCaretPos
function. The
position, in client coordinates, is copied to a POINT structure specified by a
parameter in
GetCaretPos. An application can move a caret in a window by using the
SetCaretPos function. A
window can move a caret only if it already owns the caret. SetCaretPos can move
the caret
whether it is visible or not.

Group:

CreateCaret
DestroyCaret
GetCaretBlinkTime
GetCaretPos
HideCaret
SetCaretBlinkTime
SetCaretPos
ShowCaret



----- Original Message -----
From: aku saya <akusaya at gmx.net>
To: EUforum <EUforum at topica.com>
Sent: Sunday, February 23, 2003 7:51 AM
Subject: hWnd of cursor



I want to know what is the hWnd of the current typing cursor
(only one at a time).

Not only in my application, but also outside of it.

How to get it?

Thanks!



TOPICA - Start your own email discussion group. FREE!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu