Hello Warren and all others,
now i`m backfrom my one-week skiing-trip in Austria.
i tried to avoid that any user can maximize a window.
lets take a look at the background:
a program sends a dde-message to a program with a fix userdefined
maintitle.
i can change the maintitle from the mapinfo-mainprogram, but if anybody
maximaize a window, then mapinfo changes the maintitle from for example
mapinfo to mapinfo [mapperwindow].
this results in that the dde-server cannot recognize the
mapinfo-application.
im very thanksful if you offer me a better solution for my problem.
regards christian
Warren Vick, Europa Technologies Ltd. schrieb:
>
> Hello Christian
>
> > Sub WinChangedHandler
> >
> > If WindowInfo(FrontWindow(), WIN_INFO_STATE) = WIN_STATE_MAXIMIZED
> > Then
> > Set Window FrontWindow() Restore
> > End If
> >
> > End Sub
>
> This is a bit of an odd thing to do in a WindowChangedHandler. I haven't
> tried it but from inspection it looks like when you change focus to a window
> which is maximised, you restore it to its normal size. This would happen for
> windows of all types and may well fail on some.
>
> I also suspect that changing a window size will cause WinChangedHandler to
> be called again and you may end up in recursion.
>
> What effect are you trying to achieve?
>
> Regards,
> Warren Vick
> Europa Technologies Ltd, U.K.
> http://www.europa-tech.com
--
Dipl.-Geol. Christian Tomsu
Hydrogeologist
Application Developer (MapInfo)
Phone: +49 (0)6222 - 64229
Fax: +49 (0)6222 - 61407
eMail: [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]