Quote:
Originally posted by abdul
if even if I write the function and call it under the wm_paint message then i will draw the roundrect when the window is loaded or painted.
No it doesnt, there are a bunch of ways to keep it from painting on load. The easiest way might be a public bool that when set it false does not run the paint. That should keep it from runing on load. But when the user clicks the left mouse button it changes to true. Thus it will run the function. The quickest way would be to add something like this in your paint function.