Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - SDI + Window selector = weird
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SDI + Window selector = weird

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: SDI + Window selector = weird
    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?
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2008 at 12:05pm
Oleg, what do you suggest for this? Shouldn't the whole else-statement be removed?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2008 at 1:44am
Hello,
 
Agree. If HideClient is TRUE, ActiveFiles will be removed.
Thanks.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.