Quote:
Originally Posted by Sexan
ah,shame..... Just one more question, when drawing rectangle dynamically it does not refresh if you resize (to lower number) until the mouse is released.View is updated only if the rectangle has expanded,but not if its shrinked. Is this my error somewhere?
|
Could you post the code, so that we can try to check it?
To shrink or remove previously drawn GDI elements, either REAPER must redraw the underlying window, or if the window is static, you need to draw over your own GDI elements, using the original window content. The original window content can be stored in bitmap 1, combined with the rectangles in bitmap 2, and then blitted to the screen.
To see how SWS coded their marquee "Zoom tool", check out
https://github.com/reaper-oss/sws/bl...Zoom.cpp#L1002.
Quote:
Originally Posted by amagalma
-- Could a MOD make this thread sticky please? --
|
Done.
Quote:
Originally Posted by mpl
Is it possible to port/simulate "Save file window" like a GetUserFileNameForRead() with this?
|
I do not quite understand - could you explain a bit more?