Home > Software engineering >  Help: MFC static nested split window
Help: MFC static nested split window

Time:11-18

The code is as follows:
CRect rc;
GetClientRect (rc);
M_wndSplitter1. CreateView (0, 0, RUNTIME_CLASS (CMusicPlayer1View), CSize (0; seven),
PContext);//to the corresponding pane view class specified
M_wndSplitter2. CreateStatic (& amp; M_wndSplitter1, 1, 3, WS_CHILD | WS_VISIBLE, m_wndSplitter1. IdFromRowCol (1, 0));
M_wndSplitter2. CreateView (0, 0, RUNTIME_CLASS (CMusicPlayer1View), CSize (rc) Width ()/3, 0),
PContext);
M_wndSplitter2. CreateView (0, 1, RUNTIME_CLASS (CMusicPlayer1View),
CSize (rc) Width ()/3, 0), pContext);
M_wndSplitter2. CreateView (0, 2, RUNTIME_CLASS (CMusicPlayer1View),
CSize (rc) Width ()/3, 0), pContext);

Return TRUE;


Help to look at, when I was a nested, there is always such an error, is there is something wrong with the code?

CodePudding user response:

M_wndSplitter1 segmentation for a number of the total?
M_wndSplitter2 same problem,
  • Related