Hy Trey
thank you for your tip.
For all others:
take a look on www.wap3.com
Regards Christian
Trey Pattillo schrieb:
>
> Hello
> if you go to my website I have a example of using Win API [in the WinAPI
> section] to control the min/max/close icons of a window
>
> if I remember correct there is MB and VB examples
>
> since I use Delphi I don't have to deal with the API it's built into Delphi
>
> Trey Pattillo
> [EMAIL PROTECTED]
> http://www.wap3.com
>
> ----- Original Message -----
> From: Christian Tomsu <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Sunday, 16 January, 2000 17:09
> Subject: Re: MI MB: Window Maximize Bug
>
> > 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]
--
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]