15,979
社区成员
发帖
与我相关
我的任务
分享
void C2DPushGraph::OnLButtonDblClk(UINT nFlags, CPoint point)
{
// TODO: 在此添加控件通知处理程序代码
CRect rect_full;
if(nFull == FALSE) // nFull = FALSE; 当前不是全屏
{
SetParent(GetDesktopWindow());
GetDesktopWindow()->GetWindowRect(rect_full);
MoveWindow(rect_full,TRUE);
Invalidate(TRUE);
nFull = TRUE;
}
else // nFull = TRUE; 当前是全屏
{
SetParent(pParent_graph); // 将父窗口设置为对话框
MoveWindow(rect_graph,TRUE); // 覆盖picture control的位置
Invalidate(TRUE);
nFull = FALSE;
}
}