Print Page | Close Window

SDI + Window selector = weird

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=11494
Printed Date: 13 May 2025 at 1:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SDI + Window selector = weird
Posted By: znakeeye
Subject: SDI + Window selector = weird
Date Posted: 19 July 2008 at 12:39pm
I have an SDI-application where only panes are being used. Hence, no documents/views! When I press Ctrl+Tab I get this weird entry under "Active Files". Why show the frame name there?
 
The code that causes this lies in CXTPDockingPaneWindowSelect::Reposition():
 
else if (!hWndClient)
{
    CItem* pItem = new CItem;
    pItem->hWndFrame = m_pManager->GetSite()->GetSafeHwnd();
    pItem->type = itemSDIFrame;

    pItem->rc = CRect(x, y, x + nItemWidth, y + nItemHeight);

    pItem->nIndex = (int)m_arrItems.Add(pItem);
    pItem->nColumn = nColumn;
    pItem->nRow = nRow;

    if (m_pSelected == NULL)
        m_pSelected = pItem;

    m_nFirstFile++;
}

Q:
To me, this looks like a bug. Why would you want to show the CMainFrame when selecting window in an SDI? In any case, it should be possible to disable this!
 
Perhaps HideClient(TRUE) should also hide it from the window selector?



Replies:
Posted By: Smucker
Date Posted: 19 July 2008 at 5:41pm
Very much agreed. It might have a use when HideClient(FALSE) (to set focus to the client window), but has none when HideClient(TRUE), and looks particularly strange.



-------------
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)



Posted By: znakeeye
Date Posted: 24 July 2008 at 12:05pm
Oleg, what do you suggest for this? Shouldn't the whole else-statement be removed?


Posted By: Oleg
Date Posted: 25 July 2008 at 1:44am
Hello,
 
Agree. If HideClient is TRUE, ActiveFiles will be removed.
Thanks.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net