IonicWind Software

IWBasic => GUI Central => Topic started by: Cesar Baptista on November 29, 2006, 08:59:58 AM

Title: Handler of a Window
Post by: Cesar Baptista on November 29, 2006, 08:59:58 AM
Ok,

Here my first question.  ;D

How do i get the handler of a Window ?
For a Control we can use "GETCONTROLHANDLE". And for a window ?

I need that Handler to pass to a DLL function.  :D

Thanks in advance.
Title: Re: Handler of a Window
Post by: Zen on November 29, 2006, 09:09:58 AM

DEF MyWindow as WINDOW
.....

SomeAPICall(MyWindow.hwnd,...)


Take a look at the WINDOW structure, there are a few handy things in there, but hwnd is the handle.

Lewis
Title: Re: Handler of a Window
Post by: Cesar Baptista on November 29, 2006, 09:39:05 AM
It worked.

Thanks Man.  ;D

By the way, the WINDOW Structure comes in EBasic Help ?
I canÂÃ,´t find it.
Title: Re: Handler of a Window
Post by: Ionic Wind Support Team on November 29, 2006, 12:04:36 PM
the window structure is in the file ebstd.incc which is located at c:\program files\ebdev\bin if you installed in the default directory.
Title: Re: Handler of a Window
Post by: Zen on November 30, 2006, 02:39:06 AM
No problems. I learnt a lot from looking at the include files then asking questions like what is this for and what is this for etc etc etc. Take a loook ;)

Lewis
Title: Re: Handler of a Window
Post by: Cesar Baptista on November 30, 2006, 06:31:10 AM
Thanks.  ;)