Re: [ROOT] HWND of the Canvas window?

From: Valeri Fine (fine@bnl.gov)
Date: Thu Nov 08 2001 - 01:41:16 MET


> > 1) I'm wondering if it is possible to get the handle of the canvas
> > window
> > so that I can I minimise it, change its z position when its hidden by
> > other windows, etc.

 The  function below will do this job:

   #include "TWin32Canvas.h"
   HWND GetHwnd(TCanvas &c) 
  { 
     return  ((TWin32Canvas *)c.GetCanvasImp())->GetWindow();
  }
   

  Hope this helps, 
                                                Valeri



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