diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinPointer.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/win/tkWinPointer.c b/win/tkWinPointer.c index 8ab512c..896500c 100644 --- a/win/tkWinPointer.c +++ b/win/tkWinPointer.c @@ -567,6 +567,29 @@ TkpSetCapture( } /* + *---------------------------------------------------------------------- + * + * TkpGetCapture -- + * + * This function requests which window is capturing the mouse. + * + * Results: + * The return value is a pointer to the capture window, if there is + * one, otherwise it is NULL. + * + * Side effects: + * None. + * + *---------------------------------------------------------------------- + */ + +Tk_Window +TkpGetCapture(void) +{ + return Tk_HWNDToWindow(GetCapture()); +} + +/* * Local Variables: * mode: c * c-basic-offset: 4 |