netwalker
11-13-2007, 04:43 AM
Hi All,
Right I'm having trouble optimizing a draw routine within the client area of an application that I'm writing (using the Win32 API). The problem is that I'm getting excessive updates when I resize the client area of my application. This results in some terrible screen flashing that is quite disconcerting. Basically what I want to do is update the client drawing area when the client area is bigger than its previous size. I only want the portion of the client area that is revealed drawn and nothing else. I can detect when the client area is smaller and thus no update occurs, however the flashing occurs when the client area gets larger. I know about functions InvalidateRect() and ValidateRect() as these functions add and remove rectangles. However I'm not sure how to use these in the context of my situation.
Any advices much appreciated,
netwalker.
Right I'm having trouble optimizing a draw routine within the client area of an application that I'm writing (using the Win32 API). The problem is that I'm getting excessive updates when I resize the client area of my application. This results in some terrible screen flashing that is quite disconcerting. Basically what I want to do is update the client drawing area when the client area is bigger than its previous size. I only want the portion of the client area that is revealed drawn and nothing else. I can detect when the client area is smaller and thus no update occurs, however the flashing occurs when the client area gets larger. I know about functions InvalidateRect() and ValidateRect() as these functions add and remove rectangles. However I'm not sure how to use these in the context of my situation.
Any advices much appreciated,
netwalker.