I'm trying to design a paint program, now i need to use scrollbar. I derived CScrollView. The problem is when i scroll, the coordinates is not what i think.For Example:
I set SetScrollViews(MM_TEXT, 1000x1000) -> when my app is fullscreen (scrollbar disappear), so when i move my mouse to bottom right corner, coordinates will be X=1000, Y=1000.
Then i resize window to 1/4 (that mean clientarea will be 500x500), i move my mouse to bottom right corner, coordinates will be X=500, Y=500 (scrollbar appear), then when i scroll down Hor bar and scroll right Ver bar. Result i expect when i move my mouse to bottom right corner must be X=1000, Y=1000, but the result still be X=500, Y=500.
With problem above, i cant draw shape properly with scroll bar. Can you help me? i appreciate any helps!