Article View: borland.public.cppbuilder.nativeapi
Article #584Re: ClipCursor() and Desktop Rect
From: Remy Lebeau (TeamB)
Date: Fri, 29 Feb 2008 20:05
Date: Fri, 29 Feb 2008 20:05
29 lines
1963 bytes
1963 bytes
"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:
<47c86558$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<47c8599b$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 From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <47c8599b$1@newsgroups.borland.com> Subject: Re: ClipCursor() and Desktop Rect Date: Fri, 29 Feb 2008 12:05:04 -0800 Lines: 31 Organization: Lebeau Software 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: 207.178.157.90 Message-ID: <47c86558$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204315480 207.178.157.90 (29 Feb 2008 12:04:40 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1801