HWND window = ::FindWindow(NULL,"Internet connect");
while(window == NULL)
{
window = ::FindWindow(NULL,"Internet connect");
}

HWND general = ::FindWindowEx(window,0,"General",NULL);

I retrieve always general as NULL. I'm using the internet connection
window with winXP where there are two tabs, general and details. How is
possible to retrieve the correct handle to general window?

Re: FindWindowEx by Scott

Scott
Sun Jul 23 18:03:59 CDT 2006

john wayne wrote:
> HWND window = ::FindWindow(NULL,"Internet connect");
> while(window == NULL)
> {
> window = ::FindWindow(NULL,"Internet connect");
> }
>
> HWND general = ::FindWindowEx(window,0,"General",NULL);
>
> I retrieve always general as NULL. I'm using the internet connection
> window with winXP where there are two tabs, general and details. How is
> possible to retrieve the correct handle to general window?

A tab is not a window, it is part of a tab control. You probably want a
child dialog of the tab control, or perhaps a sibling of the tab
control. You should investigate the exact structure of this composite
set of windows using the Spy++ tool that comes with VC.

--
Scott McPhillips [VC++ MVP]


Re: FindWindowEx by Alex

Alex
Mon Jul 24 01:45:48 CDT 2006

"john wayne" wrote:
>
> HWND window = ::FindWindow(NULL,"Internet connect");
> while(window == NULL)
> {
> window = ::FindWindow(NULL,"Internet connect");
> }
>
> HWND general = ::FindWindowEx(window,0,"General",NULL);
>
> I retrieve always general as NULL. I'm using the internet
> connection
> window with winXP where there are two tabs, general and
> details. How is
> possible to retrieve the correct handle to general window?


Why do you need this for? Are you planning to operate
windows controls from outside? Clumsy setup?



Re: FindWindowEx by john

john
Mon Jul 24 13:00:58 CDT 2006


Alex Blekhman ha scritto:

> "john wayne" wrote:
> >
> > HWND window = ::FindWindow(NULL,"Internet connect");
> > while(window == NULL)
> > {
> > window = ::FindWindow(NULL,"Internet connect");
> > }
> >
> > HWND general = ::FindWindowEx(window,0,"General",NULL);
> >
> > I retrieve always general as NULL. I'm using the internet
> > connection
> > window with winXP where there are two tabs, general and
> > details. How is
> > possible to retrieve the correct handle to general window?
>
>
> Why do you need this for? Are you planning to operate
> windows controls from outside? Clumsy setup?

I need to automate a process


Re: FindWindowEx by Jerry

Jerry
Mon Jul 24 14:11:37 CDT 2006

In article <1153764058.106758.303320@i42g2000cwa.googlegroups.com>,
attackack@yahoo.com says...

[ ... ]

> I need to automate a process

Instead of attempting to automate the Internet connection dialog, why
not just call RasDial and RasHangup directly?

--
Later,
Jerry.

The universe is a figment of its own imagination.