我的窗口里面响应了OnSizing
MSDN对afx_msg void OnSizing(
UINT nSide,
LPRECT lpRect
);
中的lpRect解释是这样的
lpRect
Address of the CRect or RECT structure that will contain the item's coordinates. 我想知道它这解释里面的item是什么?是指当前窗口吗?好像不对的我想知道但窗口尺寸发生变化的时候,我怎么能重新获得它在父窗口上的位置与尺寸
MSDN对afx_msg void OnSizing(
UINT nSide,
LPRECT lpRect
);
中的lpRect解释是这样的
lpRect
Address of the CRect or RECT structure that will contain the item's coordinates. 我想知道它这解释里面的item是什么?是指当前窗口吗?好像不对的我想知道但窗口尺寸发生变化的时候,我怎么能重新获得它在父窗口上的位置与尺寸
ScreenToClient();
2. 一般情况其他地方不对子控件处理的话,控件的相对位置为你开始设置的位置。