Home > Software engineering >  MDI tile view failure!!!!!!
MDI tile view failure!!!!!!

Time:11-20


If project in the MFC wizard to use MFC standard in style, in the user interface function of promoter framework under the style of the three options not graying.
Can be successful.
If the project chose after visual studio style.
Using MDITile (MDITILE_HORIZONTAL);//tile MDI child Windows so that
Failure...

CodePudding user response:

 
Void CXTWindowList: : OnBtnTilehorz ()
{
CWaitCursor wait;

Int iCount=m_lboxWindows. GetCount ();
If (iCount!=LB_ERR & amp; & ICount & gt; 0)
{
: : LockWindowUpdate (m_hWndMDIClient);

Int iItem.
For (iItem=iCount - 1; IItem & gt;=0; IItem -)
{
HWND HWND=(HWND) m_lboxWindows. GetItemData (iItem);

If (m_lboxWindows GetSel (iItem) & gt; 0)
: : ShowWindow (hWnd, SW_RESTORE);
The else
: : ShowWindow (hWnd, SW_MINIMIZE);
}

: : SendMessage (m_hWndMDIClient, WM_MDITILE, MDITILE_HORIZONTAL, 0);
: : LockWindowUpdate (NULL);
}
}
  • Related