IonicWind Software

IWBasic => General Questions => Topic started by: Andy on October 25, 2015, 07:25:34 AM

Title: Window Handle
Post by: Andy on October 25, 2015, 07:25:34 AM
I know I've asked this before, but I simply can't remember how to do it.

How do I get the pointer (handle to a window? - not a control within it.)

Searched all over the forum and just can't find it.

Working on an include file which I want to share, but I do need to find the handle of the current window
where say "win" is the created / showing window.

Basically I want to pass two details to a sub routine - Window, and Control number.

DoSomething(Win,Button_1) - where win is the current shown screen.

And if I was to save that pointer to win - would it be an INT or UINT etc...?

Thanks,
Andy.
:)
Title: Re: Window Handle
Post by: ckoehn on October 25, 2015, 02:18:46 PM
window w1

'handle to window
w1.hwnd


I think this is right.

Later,
Clint
Title: Re: Window Handle
Post by: LarryMc on October 25, 2015, 09:00:34 PM
Clint is correct and win.hwnd is UINT
Title: Re: Window Handle
Post by: Andy on October 25, 2015, 11:24:15 PM
Clint and Larry,

Thanks, just couldn't remember it.

Andy.
:)