Solved

desktop changed rectangle

Posted on 2003-10-21
8
289 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
Comment Utility
? didn't understand this q
0
 
LVL 8

Accepted Solution

by:
gmayo earned 125 total points
Comment Utility
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
Comment Utility
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 8

Expert Comment

by:gmayo
Comment Utility
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
Comment Utility
hi,

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

Thanks SasiNair
0
 

Author Comment

by:sasinair
Comment Utility
hi,

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

Thanks SasiNair
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

18 Experts available now in Live!

Get 1:1 Help Now