hi!!
i need to create a flow chart in a window using MFC . i m having problems in finding coordiantes of mid point of my window when i maximize or minmize my window, n dats why many of my symbols ( eg. rectangles,rhombus vanish when my window is minimized or maximised...) n i m quite new to MFC n windows programming.so,plz suggest me quick n easy soln.

thnx...

Welcome,

You should have to use getWindowRect method.

CRect rect;
CPoint point;

wnd->getWindowRect(rect);
point.x=rect.Width()/2;
point.y=rect.Height()/2;