Blog Posts

 

heroes of might 2 download


Name: heroes of might 2 download
Category: Free
Published: elerlicont1974
Language: English

 


 


 

 

 

 

 

 

 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 

All replies.
well the answer is this- major workaround : to get the visible region data, you need to test many points aboive your window X,Y coordinates to see if they are visible (first in the Z axis), simple for loop will do, but for each X,Y point you will need to call WindowFromPoint(POINT input_point), and then to test if the window handle above that specific point is equal to your window handle.
Getregiondata example download.
I am using WinGDI Function GetRegionData to calculate visible regions of a window, so that I know by that region information where to draw another window. But, in Windows 7 with Desktop Composition and with Windows 8 ,where Desktop Composition is turn on by default, by call to GetRegionData does not detect regions correctly. It just detects one rectangle, and does not calculate correctly when for example i put notepad over the whole window, its still detects one region. I do not have this problem when I shut down Desktop Composition in Win7.
If it is not equal it means another windows is above your window, then you need to get the region data of the both the window that is above, and your own window, which is realy easy to do, using GetRegionData wich will return the complete area of both windows (causing the need for this workaround), but now as you have both visible regions, you can use CombineRgn(. ) WinAPI funciton to delete the fisible regions from your own region data, thus knowing what part of your window is not visible. Repeating this for other windows that are above yours in the Z axis. Your do not really have to do this for every pixel.
I had to return after year and a half to put down the answer. that i found then.
I understand that desktop composition basically sends a buffer of all windows to the Graphic card. and that graphic card calculates which window to draw. I guess by Z-order.
this is the idea, but you need to adapt the code for your own need.
So GetRegionData is working when I create some complicated region manualy, but it fails to calculate the visible regions of a window that is overlapped with some other window.
Edited by Ivan Zivkovic 86 Saturday, November 2, 2013 9:12 PM.

Is there a way to calculate visible regions of a selected window while Desktop Composition is on ?
note: Basicaly I need to know where my window is visible, so I can have the precise region data on another comuter.
http://deftciteporansli.eklablog.com/abit-kv7-driver-free-download-...

Views: 3

Comments are closed for this blog post

© 2024   Created by PH the vintage.   Powered by

Badges  |  Report an Issue  |  Terms of Service