Article View: borland.public.cppbuilder.nativeapi
Article #16774Re: F5 Refresh Explorer
From: StarCinema - Rodolfo Frino
Date: Tue, 29 Apr 2003 06:36
Date: Tue, 29 Apr 2003 06:36
26 lines
1524 bytes
1524 bytes
HWND Handle = FindWindow("ApplicationClass", NULL);
if(Handle)
{
BringWindowToTop(Handle); // Bring Application to Top
keybd_event(VK_F5, 0, 0, 0);
// Down
keybd_event(VK_F5, 0, KEYEVENTF_KEYUP, 0); // Up
}
else
{
ShowMessage("Invalid Handle. Application might not be open");
}
Rodolfo
"RaynorPao" <RaynorPao.nospam@nospam.pchome.com.tw> wrote in message
news:3eadfe5c@newsgroups.borland.com...
> Hi all:
>
> I can press key "F5" to refresh Explorer.
> How can I do this programmatically?
>
> Thanks.
> RaynorPao.
>
>
Technical Details
Message-ID:
<3eae1e5a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eadfe5c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2a8b24ef7e4ae381 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-28 23:43:31 PST From: "StarCinema - Rodolfo Frino" <starcinema@stargate.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eadfe5c@newsgroups.borland.com> Subject: Re: F5 Refresh Explorer Date: Tue, 29 Apr 2003 16:36:32 +1000 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 203.164.37.114 Message-ID: <3eae1e5a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051598426 203.164.37.114 (28 Apr 2003 23:40:26 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail