RE: [ROOT] HWND of the Canvas window?

From: Faine, Valeri (fine@bnl.gov)
Date: Thu Nov 15 2001 - 01:34:15 MET


 
I think the 'recommended" way to provide the custom behaviour 
of TCanvas is to supply a custom implementation of TCanvasImp 
base class. (see Go4 and ActiveRoot projects for examples)

 Valeri

-----Original Message-----
From: Brandon Kohn
To: roottalk@pcroot.cern.ch
Cc: Aldo F Saavedra
Sent: 11/8/01 7:01 AM
Subject: Re: [ROOT] HWND of the Canvas window?

But if you do want to get a handle to the HWND (at least in win32) I
think
you can cast the TCanvasImp into a TWin32Canvas which has a GetWindow()
method that returns the HWND.

My question is the following.  Can you turn off the menubar and border
for
canvas and then wrap it in a CWnd (MFC) via the HWND?

Brandon Kohn

----- Original Message -----
From: "Valeri Fine" <fine@bnl.gov>
To: <roottalk@pcroot.cern.ch>
Cc: "Aldo F Saavedra" <AFSaavedra@lbl.gov>
Sent: Wednesday, November 07, 2001 11:42 AM
Subject: Re: [ROOT] HWND of the Canvas window?


>
> > Valeri Fine wrote:
> > > >
> > > > 2) Why are the colours of the palette in the windows version
being
> > > > limited to 236 colours?
> > >
> > >   It is not Windows version of ROOT limitation. ROOT has built-in
array
> > >   256 indices.
> > >   I wonder if ROOT team had lifted that restriction.
> > >
> > this restriction has been lifted some time ago.
>
> I wonder if it was lifted for UNIX platform only and never was tested
on
> Windows.
> Can you ask your current Win32 volunteer Bertrand to fix that ?
>
>                                Valeri
>
>



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:08 MET