c++ - How to implement OnMove() in MFC? -
c++ - How to implement OnMove() in MFC? -
i've created sdi mfc project , i'm trying refresh coordinates of window upon moving of window...
here's have far:
// todo: add together draw code native info here rect rect; getclientrect(&rect); // window coordinates int left = rect.left; int right = rect.right; int bottom = rect.bottom; int top = rect.top; // print them out cstring l; l.format(l"%d", left); pdc->textoutw(0, 100, l"left: " + l, _tcslen(l)+6); cstring r; r.format(l"%d", right); pdc->textoutw(0, 130, l"right: " + r, _tcslen(r)+7); cstring b; b.format(l"%d", bottom); pdc->textoutw(0, 160, l"bottom: " + b, _tcslen(b)+8); cstring t; t.format(l"%d", top); pdc->textoutw(0, 190, l"top: " + t, _tcslen(t)+5);
what do implement onmove() function refreshes these values new ones upon each move/resize of window?
c++ visual-studio-2013 mfc
Comments
Post a Comment