Solved

desktop changed rectangle

Posted on 2003-10-21
8
291 Views
Last Modified: 2010-04-05
Hi all

How do I get the exact rectangle of the updated desktop?
That means I am doing a desktop share program.First time I taken the full bitmap of the desktop next time I want only the changed rectangle of the desktop.[ I dont want to compare the new and old image].

Is any way to get the changed rect?
Will this help any way GetUpdateRect ?

thanks in advance
sasinair
0
Comment
Question by:sasinair
  • 3
  • 2
8 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9590893
? didn't understand this q
0
 
LVL 8

Accepted Solution

by:
gmayo earned 125 total points
ID: 9591496
It looks like that function may be useful to you. You would probably want to trap (using hooks) the WM_PAINT and any other drawing messages that are sent to the window (desktop) that you are trying to capture.

"The GetUpdateRect function retrieves the coordinates of the smallest rectangle that completely encloses the update region of the specified window. If the window was created with the CS_OWNDC style and the mapping mode is not MM_TEXT, GetUpdateRect retrieves the rectangle in logical coordinates. Otherwise, it retrieves the rectangle in client coordinates. If there is no update region, GetUpdateRect retrieves an empty rectangle (sets all coordinates to zero). " - Win32 SDK

Geoff M.
0
 

Author Comment

by:sasinair
ID: 9597861
Ok i will explain again,

I am doing a desktop remote share program. In that first time I taken the full image of the desktop. Next time I need only the changes happened in the desktop.[I mean the changed rectangle].How do I get it?


I hope for this I need some windows hook that I don’t have.
Second is it possible to trap in the WM_PAINT of this hook.

If this is not possible tell me the best way to get the changes in the desktop.

Thanks SasiNair
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 8

Expert Comment

by:gmayo
ID: 9601265
Er... you've already been told! If you trap this message you should get the exactly what you say, ie "I mean the changed rectangle".

Geoff M.
0
 

Author Comment

by:sasinair
ID: 9604407
hi,

But I dont have windows hook program.
Can u help me to get windows hook.

Thanks SasiNair
0
 

Author Comment

by:sasinair
ID: 9604415
hi,

But I dont have windows hook program.
Can u help me to get windows hook.

Thanks SasiNair
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi application Soap connection 5 96
delphi parse string to params 3 101
JAudiorecorder record freezing the app 29 60
PHP preg_replace code convert to Delphi 14 37
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now