🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10854

Re: is the window handle always the window handle?

#10854
From: MortZ
Date: Thu, 11 Mar 2004 02:27
24 lines
1859 bytes
Hi Gambit...

Thank you so much for your patience and prompt replies... your last post made me fully understand the problem so I modified the code and it apperas to work for SDI Apps.

    BOOL CALLBACK GetWinHandle(HWND hwnd,LPARAM lParam)
{
     NodeInfo* pInfo=(NodeInfo *)lParam;
     DWORD dwProcessId=0;
     GetWindowThreadProcessId(hwnd,&dwProcessId);
     if(dwProcessId==pInfo->ProcessID() && IsWindowVisible(hwnd))
     {
           //For SDI, hopefully there will be only one visible window.
            pInfo->WindowHandle(hwnd);
     }
     return (pInfo->WindowHandle()==NULL);
}

I will start my reading on the functions you mentioned to cope with MDI as well and I will also try your suggestion about using rundll32 for dll associated documents. Thank you again.

Oh yes, one more thing...

                      
                    T e a m B  RULES!!!
Technical Details
Message-ID: <404fce7e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <404f4eb5$1@newsgroups.borland.com> <404f6927$1@newsgroups.borland.com> <404f9b65@newsgroups.borland.com> <404fb6e5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6dc76ae9466e5f5
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-10 18:40:11 PST
From: "MortZ" <rmorteo@hotmail.com>
Sender: "MortZ" <rmorteo@hotmail.com>
Reply-To: "MortZ" <rmorteo@hotmail.com>
Subject: Re: is the window handle always the window handle?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 158.97.22.182     
References: <404f4eb5$1@newsgroups.borland.com> <404f6927$1@newsgroups.borland.com> <404f9b65@newsgroups.borland.com> <404fb6e5$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <404fce7e$1@newsgroups.borland.com>
Date: 10 Mar 2004 18:27:10 -0800
X-Trace: newsgroups.borland.com 1078972030 207.105.83.66 (10 Mar 2004 18:27:10 -0800)
Lines: 24
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail