Re: hWnd of cursor

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

This is what I think I understand about working with carets.

I believe that the caret doesn't have its own handle.  You operate on it 
through its parent window.  In win32lib it would be handled from some 
event in its parent window with "setHandler()".  Using the API directly 
you use the window messages to work with it, i.e. WM_SETFOCUS.

some caret functions from win32lib.ew:
    xCreateCaret        = registerw32Function(user32, "CreateCaret", 
{C_POINTER, C_POINTER, C_LONG, C_LONG}, C_LONG ),
    xGetCaretBlinkTime  = registerw32Function(user32, 
"GetCaretBlinkTime", {}, C_LONG ),
    xSetCaretBlinkTime  = registerw32Function(user32, 
"SetCaretBlinkTime", {C_LONG}, C_LONG ),
    xDestroyCaret       = registerw32Function(user32, "DestroyCaret", 
{}, C_LONG ),
    xHideCaret          = registerw32Function(user32, "HideCaret", 
{C_POINTER}, C_LONG ),
    xShowCaret          = registerw32Function(user32, "ShowCaret", 
{C_POINTER}, C_LONG ),
    xSetCaretPos        = registerw32Function(user32, "SetCaretPos", 
{C_LONG, C_LONG}, C_LONG ),
    xGetCaretPos        = registerw32Function(user32, "GetCaretPos", 
{C_POINTER}, C_LONG )


aku saya wrote:

>
>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