Article View: borland.public.cppbuilder.migration
Article #144Call to SystemParametersInfo() no longer works under Borland C++ Builder 7
From: James O'Brien
Date: Tue, 05 Aug 2008 20:23
Date: Tue, 05 Aug 2008 20:23
27 lines
1768 bytes
1768 bytes
I have code which performs custom painting to a window's title
bar(non-client area). I recently migrated from "C++ Build v6" to "C++
Builder 2007" and calls to SystemParametersInfo() no longer work.
*********************
code sample
*********************
NONCLIENTMETRICS NCM;
ZeroMemory(&NCM, sizeof(NONCLIENTMETRICS));
NCM.cbSize = sizeof(NONCLIENTMETRICS);
SystemParametersInfo(SPI_GETNONCLIENTMETRICS,
sizeof(NONCLIENTMETRICS),
(PVOID)&NCM,
0);
After zeroing the NCM structure and assigning NCM.cbSize the correct value,
a call to SystemParametersInfo() has no effect. All data members in the NCM
structure are unchanged. This code works correctly under C++ Builder v6.
Any thoughts?
Thanks
James O'Brien
Technical Details
Message-ID:
<4898b6ce$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 110f51,9e6e6ebe95bfafce,start X-Google-Attributes: gid110f51,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "James O'Brien" <obrien@niscnet.com> Newsgroups: borland.public.cppbuilder.migration Subject: Call to SystemParametersInfo() no longer works under Borland C++ Builder 7 Date: Tue, 5 Aug 2008 16:23:43 -0400 Lines: 29 Organization: NISC X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 66.134.39.197 Message-ID: <4898b6ce$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1217967822 66.134.39.197 (5 Aug 2008 13:23:42 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail