[Mono-winforms-list] Re: How to know the rect associated with a handle ?

Dmitriy ddmk@r66.ru
Sun, 10 Oct 2004 22:26:55 +0600


How to bind OpenGL (c++ code in external native library)  to Windows, that
was created by SWF ?
(How to do so under windows and Microsoft .NET  i know, but how do this with
mono and linux?)


----- Original Message ----- 
From: "Peter Dennis Bartok" <peter@novonyx.com>
To: "Dasnois Benjamin" <benjamin.dasnois@gmail.com>; "mono-winforms-list"
<mono-winforms-list@ximian.com>
Sent: Sunday, October 10, 2004 4:00 AM
Subject: Re: [Mono-winforms-list] Re: How to know the rect associated with a
handle ?


> Hm, what are you trying to do? There should few reasons why anything
besides
> Control and Form call down to XplatUI. Besides, how did you get the
> handle/IntPtr in the first place? You shouldn't ever have to deal with the
> handle directly, either. There are cases where you may have to, but those
> are very rare.
>
> Peter
>
>
> -----Original Message-----
> From: "Dasnois Benjamin" <benjamin.dasnois@gmail.com>
> To: "mono-winforms-list" <mono-winforms-list@ximian.com>
> Date: Saturday, 09 October, 2004 15:48
> Subject: [Mono-winforms-list] Re: How to know the rect associated with a
> handle ?
>
>
> >Ok I just figured out that there's a XplatUI instance which allow
> >access to the good driver. I replied just for it to be in the archives
> >if someone cares ;-)
> >
> >
> >On Sat, 9 Oct 2004 23:36:13 +0200, Dasnois Benjamin
> ><benjamin.dasnois@gmail.com> wrote:
> >> Hello,
> >> I'm working on a CommonDialog implementation but I need to know the
> >> rectangle associated with a handle (IntPtr)
> >> I saw two functions to do this: the first one is  Win32GetClientRect
> >> in XplatUIWin32 and the second one is GetWindowPos in XplatUI
> >> So I suppose one is for linux (X server) and the other one is for
> >> windows but I would like to know how I can know which one to use, in
> >> other words: how can I know if I'm under windows or linux ? Or maybe
> >> there's a simpler solution ?
> >>
> >> Thanks.
> >>
> >> --
> >> DASNOIS Benjamin
> >>
> >
> >
> >-- 
> >DASNOIS Benjamin
> >_______________________________________________
> >Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> >http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> >
> >
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list