Re: [AD] MSVC mouse problem (may be a bug?) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hi Eric,
I delayed the answer because I made several tests
before answering this.
--- Eric Botcazou <ebotcazou@xxxxxxxxxx>
escribió:
<CUT>
> Does the attached patch make any difference?
>
> --
> Eric Botcazou> ---
/home/eric/cvs/allegro/src/win/wddmode.c Fri Nov
> 15 11:39:39 2002
> +++ allegro/src/win/wddmode.c Fri Oct 31 16:11:18
> 2003
> @@ -399,8 +399,11 @@
> /* remove the window controls */
> SetWindowLong(allegro_wnd, GWL_STYLE, WS_POPUP);
>
> - /* maximize the window */
> - ShowWindow(allegro_wnd, SW_MAXIMIZE);
> + /* maximize the window and make it always-on-top
<CUT>
------------------------
I tried it and found that the mouse pointer still
appears on the foreground when another application
runs.
BTW with this patch I found that when I ran the
application within Visual C++ 6.0 environment, the
mouse pointer appeared at the front of the fullscreen
window, as the "cursor like" pointer (owned by
VStudio).
Then I tried setting the line
ShowWindow(allegro_wnd, SW_MAXIMIZE);
after the "SetWindowPos" call and the mouse at Visual
C++ environment dissapeared. Anyway this pointer
appears on the machine that runs the application at
the startup.
BTW, Y! messenger's "new-e-mail" little windows still
appears in fullscreen after the patch.
I tried also a different approach, I used an example
from the OpenGL course by "Neon Helium" (NEHE)
(http://nehe.gamedev.net/lesson.asp?index=01)
-thinking on using AlegroGL...- and found that any
fullscreen example on OpenGL ALSO let the mouse
pointer appear, even though you don't do anything for
this! (Another application just runs and make it
appear).
SO... I guess Windows does permit anyone to "touch"
your screen with this unwanted pointer, even in
"fullscreen-modal-don't bother my application" mode
(hehe)...
Don't know if it's a matter of running priority or
what... My tests where made on Windows 98 SE and
Windows 2000 Professional with all the last patches
and updates applied.
Thanks for your help!
Kind regards,
Hugo Caro
Gaming software developer.
------------
¡Ayudá a los chicos navegando!
En noviembre, Yahoo! dona un plato de comida por cada usuario que nevegue gratis con Yahoo! Conexión.
Conectate ya en http://conexion.yahoo.com.ar