VisualStudio.C++.C#2017. 6. 19. 20:47



CDockablePane 에서


CDialog m_pDlg;


CDockablePane::OnCreate()

{

 m_pDlg.Create(IDD_DLG, this);

 m_pDlg.ShowWindow(SW_SHOW);

}


CDockablePane::OnPaint()

{

 CPaintDC dc(this); // device context for painting
        // TODO: Add your message handler code here
        // Do not call CDockablePane::OnPaint() for painting messages

 CRect rectdlg;
 m_ChartControlDlg.GetWindowRect(rectdlg);
 ScreenToClient(rectdlg);

 rectdlg.InflateRect(1, 1);
 dc.Draw3dRect(rectdlg, ::GetSysColor(COLOR_3DSHADOW), ::GetSysColor(COLOR_3DSHADOW));


}


CDockablePane::OnSize()

{

m_ChartControlDlg.MoveWindow(0,0,cx,cy);

}


실행예.



 본 글이 포함된 상위 정리 장소.

 

 Visual Studio/VC++/C/C# 활용정리 -> http://igotit.tistory.com/11

 

 

///1320.






Posted by 리치굿맨

댓글을 달아 주세요