sasansamit

I have created a Graphics object using Graphics(HDC *hdc) constructor. In this case how does the graphics object knows about the Visible region of the window. It does knows that other wise how does it can implement GetVisibleClipBounds function.
In my case if after the creation of the Graphics object the window is resized i.e. the visible region is changed, anything drawn on the new found area is not actually drawn.
As far as i can see the visible region is not getting updated in the Graphics object, can anyone help me with this.

Will appreciate it
Samit



Re: Visual C++ General Visble Clip bounds in a Graphics object

Sarath.

You can use GetClipBox function to get the closest bound rectangle area visible for drawing

Check this sample too.






Re: Visual C++ General Visble Clip bounds in a Graphics object

sasansamit

But that won't serve my purpose, i want to update the visible region info present inside the Graphics object.
Another thing is why isn't it getting automatically updated.
The Graphics object is associated with the HDC so any changes to the window should be updated too... isn't that so