Article View: borland.public.cppbuilder.nativeapi
Article #11843Re: Registry reset or refresh
From: Remy Lebeau (TeamB)
Date: Mon, 12 Jan 2004 23:52
Date: Mon, 12 Jan 2004 23:52
25 lines
1955 bytes
1955 bytes
"Marc" <remove_Bukwheat@axess.com> wrote in message
news:400326c1$1@newsgroups.borland.com...
> SystemParametersInfo(SPI_SETACTIVEWINDOWTRACKING |
> SPI_SETACTIVEWNDTRKTIMEOUT, 0, NULL, SPIF_SENDCHANGE);
You cannot specify the flags at the same time. You need to make separate
calls to SystemParametersInfo() for each one individually:
BOOL enabled = TRUE;
SystemParametersInfo(SPI_SETACTIVEWINDOWTRACKING, 0, &enabled,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
DWORD timeout = 0;
SystemParametersInfo(SPI_SETACTIVEWNDTRKTIMEOUT, 0, &timeout,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
> PostMessage(HWND_BROADCAST, WM_SETTINGCHANGE, NULL, NULL);
You do not need to do that yourself. As I said earlier,
SystemParametersInfi() can do that for you automatically.
Gambit
Technical Details
Message-ID:
<400331c9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3ffdcd22$1@newsgroups.borland.com> <3ffdd1ed@newsgroups.borland.com> <3fff2306$1@newsgroups.borland.com> <3fff251a$1@newsgroups.borland.com> <400318a6$1@newsgroups.borland.com> <40031afd$1@newsgroups.borland.com> <400326c1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8a0ecda5c9359deb X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-12 16:10:17 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ffdcd22$1@newsgroups.borland.com> <3ffdd1ed@newsgroups.borland.com> <3fff2306$1@newsgroups.borland.com> <3fff251a$1@newsgroups.borland.com> <400318a6$1@newsgroups.borland.com> <40031afd$1@newsgroups.borland.com> <400326c1$1@newsgroups.borland.com> Subject: Re: Registry reset or refresh Date: Mon, 12 Jan 2004 15:52:27 -0800 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <400331c9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073951177 67.22.138.253 (12 Jan 2004 15:46:17 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail