For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

selection rectangle

Adrian Helcman's picture


would you give me an advice to solve the following problem:
i cannot find a method to erase the previous state of selection rectangle, when it is dynamically resized.
i have checked it also on oc sample application (attached image), but it is the same.
i'm using oc version 5.2.

best regards,

Sharjith Naramparambath's picture

Windows 7 GDI doesn't blend well with OpenGL. All my OpenGL applications that have rubberbanding using the GDI rectangle also face the same issue after migrating to Windows 7.

Hesham Nasif's picture

All you need it to use this.Refresh() before calling any function to draw rectangle even using GDI