June 25, 2024, 06:13:32 PM

News:

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


Window Handle

Started by Andy, October 25, 2015, 07:25:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

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.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

ckoehn

window w1

'handle to window
w1.hwnd


I think this is right.

Later,
Clint

LarryMc

Clint is correct and win.hwnd is UINT
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Andy

Clint and Larry,

Thanks, just couldn't remember it.

Andy.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.