how can i pass something like CPaint dc(this); to a function
i tried something like function(CDC dc, etc) but doesnt work
the reason why i want this because in the paint event you cant use CPaint dc(this); more than 1 time i dont know why.. if i put that CPaint dc(pWnd); in the function it will work 1 time but the second time i use the function in the same paint event it wont work
nvm i solved the first issue now the only problem is when i draw a background on a dialog then draw some borders, the borders flicker alot on resizing they are drawed in the paint event
the background doesnt flicker at all when resized .. but the borders do alot.. is there any way i can fix this?