Article View: borland.public.cppbuilder.nativeapi
Article #585Re: ClipCursor() and Desktop Rect
From: Renald Yazmir
Date: Fri, 29 Feb 2008 21:13
Date: Fri, 29 Feb 2008 21:13
37 lines
2214 bytes
2214 bytes
Thank you very much! SystemParametersInfo(SPI_GETWORKAREA) is what I needed. Rony "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:47c86558$1@newsgroups.borland.com... > > "Renald Yazmir" <renald@partmaker.com> wrote in message > news:47c8599b$1@newsgroups.borland.com... > >> As the test I just call GetClipCursor(&clip_rect) and then right >> away I call ClipCursor(&clip_rect). >> When I start dragging a dialog box I can drag it under the >> desktop taskbar. Why? > > Obviously, GetClipRect() is including the area occupied by the taskbar. > >> 2) Then I am trying to change the clip_rect, to decrease it by the >> taskbar? > > Why don't you want the user to be able to reach the taskbar? > >> I get the desktop window and then desktop rectangle. It turned >> out that desktop rectangle equals to clip_rect. > > You are retrieving the rect of the desktop window itself. The taskbar > sits on top of that. So it makes sense for the desktop rect to include > the taskbar rect in it. > >> How do I get desktop rectangle minus taskbar? > > Have you looked at SystemParametersInfo(SPI_GETWORKAREA) yet? > > > Gambit >
Technical Details
Message-ID:
<47c87581$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47c8599b$1@newsgroups.borland.com> <47c86558$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1978beb30802b8a X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Renald Yazmir" <renald@partmaker.com> From: "Renald Yazmir" <renald@partmaker.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <47c8599b$1@newsgroups.borland.com> <47c86558$1@newsgroups.borland.com> Subject: Re: ClipCursor() and Desktop Rect Date: Fri, 29 Feb 2008 16:13:24 -0500 Lines: 39 Organization: IMCS Inc X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 66.106.28.123 Message-ID: <47c87581$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204319617 66.106.28.123 (29 Feb 2008 13:13:37 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail