|
Is it possible to subclass the mouse pointer?
Author |
Message |
Gary #1 / 6
|
 Is it possible to subclass the mouse pointer?
Is it possible to subclass te mouse pointer to stay on top of all windows? I know this sounds strange but I have an application which lets you view fullscreen video. Is there anyway I can decide when to view the mouse pointer like the old Windows media player let you do in fullscreen mode? Thanks, Gary
|
Fri, 09 Jul 2004 12:43:52 GMT |
|
 |
Joseph M. Erhard #2 / 6
|
 Is it possible to subclass the mouse pointer?
Quote:
> Is it possible to subclass te mouse pointer to stay on top of all windows? I > know this sounds strange but I have an application which lets you view > fullscreen video. Is there anyway I can decide when to view the mouse > pointer like the old Windows media player let you do in fullscreen mode? > Thanks, > Gary
Dear Gary: You can always "cheat" and move the mouse point to the extreme bottom-right of the screen, using an API call (SetCursorPos, IIRC). Then, periodically, in a timer event, you can see if the pointer's been moved and move it back out of the way until you do the magic keypress or whatever. Regards, Joe the way.
|
Sat, 10 Jul 2004 03:21:27 GMT |
|
 |
Gary #3 / 6
|
 Is it possible to subclass the mouse pointer?
That would be a good addition to what I want to do. What I need to do is make the mouse visible as it is now not visible while in fullscreen video. Thanks much, Gary
Quote:
> > Is it possible to subclass te mouse pointer to stay on top of all windows? I > > know this sounds strange but I have an application which lets you view > > fullscreen video. Is there anyway I can decide when to view the mouse > > pointer like the old Windows media player let you do in fullscreen mode? > > Thanks, > > Gary > Dear Gary: > You can always "cheat" and move the mouse point to the > extreme bottom-right of the screen, using an API > call (SetCursorPos, IIRC). Then, periodically, in a > timer event, you can > see if the pointer's been moved and move it back out of > the way until you do the magic keypress or whatever. > Regards, > Joe > the way.
|
Sat, 10 Jul 2004 06:13:28 GMT |
|
 |
Jakob Bielin #4 / 6
|
 Is it possible to subclass the mouse pointer?
Quote: > Is it possible to subclass te mouse pointer to stay on top of all windows? I > know this sounds strange but I have an application which lets you view > fullscreen video. Is there anyway I can decide when to view the mouse > pointer like the old Windows media player let you do in fullscreen mode? > Thanks, > Gary
Use the Win32 API function ShowCursor. If you pass False, the cursor will be hidden, if you pass True, the cursor will be shown. If you call ShowCursor (False) twice, you also have to call ShowCursor (True) twice until the cursor will be visible. hth jb
|
Sat, 10 Jul 2004 20:40:28 GMT |
|
 |
Gary #5 / 6
|
 Is it possible to subclass the mouse pointer?
I did try the showcursor function but it will not display the cursor while in fullscreen video mode. Thanks for your help. Gary
Quote:
> > Is it possible to subclass te mouse pointer to stay on top of all windows? I > > know this sounds strange but I have an application which lets you view > > fullscreen video. Is there anyway I can decide when to view the mouse > > pointer like the old Windows media player let you do in fullscreen mode? > > Thanks, > > Gary > Use the Win32 API function ShowCursor. If you pass False, the cursor will be > hidden, if you pass True, the cursor will be shown. If you call ShowCursor > (False) twice, you also have to call ShowCursor (True) twice until the cursor > will be visible. > hth > jb
|
Sun, 11 Jul 2004 08:04:58 GMT |
|
 |
Jakob Bielin #6 / 6
|
 Is it possible to subclass the mouse pointer?
Quote: > I did try the showcursor function but it will not display the cursor while > in fullscreen video mode. > Thanks for your help. > Gary
What do you mean by "fullscreen video mode"? When I call ChangeDisplaySettings I can still show and hide the mouse cursor. Regards, jb
|
Tue, 27 Jul 2004 22:23:27 GMT |
|
|
|