Solved

desktop changed rectangle

Posted on 2003-10-21
8
293 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

816 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

10 Experts available now in Live!

Get 1:1 Help Now