🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

ShellExecute

#17214
From: RaynorPao
Date: Thu, 03 Apr 2003 10:52
10 lines
1181 bytes
Hi all:

I can use API ShellExecute to execute notepad.

ShellExecute(handle, "open", "test.txt", NULL, NULL, SW_SHOWNORMAL);

But, how can I get the HWND of this notepad?

Thanks.
RaynorPao.
Technical Details
Message-ID: <3e8c0ea4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newshosting.com!news-xfer1.atl.newshosting.com!ken-transit.news.telstra.net!news.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,bff1fa0e8e8777f2,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-03 02:56:07 PST
From: "RaynorPao" <RaynorPao.nospam@nospam.pchome.com.tw>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: ShellExecute
Date: Thu, 3 Apr 2003 18:52:42 +0800
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
NNTP-Posting-Host: 61.221.176.28
Message-ID: <3e8c0ea4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1049366180 61.221.176.28 (3 Apr 2003 02:36:20 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newshosting.com!news-xfer1.atl.newshosting.com!ken-transit.news.telstra.net!news.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail