June 02, 2024, 09:26:00 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Handler of a Window

Started by Cesar Baptista, November 29, 2006, 08:59:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cesar Baptista

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.
CÃÆ'ƒÂÃ,©sar Baptista - PORTUGAL

Zen


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

Cesar Baptista

It worked.

Thanks Man.  ;D

By the way, the WINDOW Structure comes in EBasic Help ?
I canÂÃ,´t find it.
CÃÆ'ƒÂÃ,©sar Baptista - PORTUGAL

Ionic Wind Support Team

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.
Ionic Wind Support Team

Zen

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

Cesar Baptista

CÃÆ'ƒÂÃ,©sar Baptista - PORTUGAL