![]() |
SDI + Window selector = weird |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() 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); if (m_pSelected == NULL) 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?
|
|
![]() |
|
Smucker ![]() Senior Member ![]() ![]() Joined: 02 February 2008 Status: Offline Points: 156 |
![]() ![]() ![]() ![]() ![]() |
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) |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Oleg, what do you suggest for this? Shouldn't the whole else-statement be removed?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Agree. If HideClient is TRUE, ActiveFiles will be removed.
Thanks.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |