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

Peter Dennis Bartok peter@novonyx.com
Sat, 9 Oct 2004 16:00:19 -0600


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
>
>