Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Bug introduced in 12.0.2
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug introduced in 12.0.2

 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: Bug introduced in 12.0.2
    Posted: 28 September 2008 at 5:02pm
BOOL CMyPane::OnInitDialog()
{
    CXTResizeDialog::OnInitDialog();
   
    if (CreateGrid())
    {
        m_wndPropertyGrid.SetFocus(); // Causes eternal loop!!
        SetResize(IDC_GRID_DATA, SZ_TOP_LEFT, SZ_BOTTOM_RIGHT);
    }
 
 
Upgraded from 12.0.1 and got this problem...
------------------------------------------------------------------------------
 
Edit: And here's a sample project demonstrating the problem!
 
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: 29 September 2008 at 4:21am
Can you try reproduce something like that with our samples ?
 
I tried GUI_VisualStudio sample and can't reproduce :(

Try set focus in WM_SETFOCUS handler:
 

void CMyPane::OnSetFocus(CWnd* /*pOldWnd*/)
{
 m_wndPropertyGrid.SetFocus();
}
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 01 October 2008 at 5:22pm
Please have a look at my sample project!
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: 02 October 2008 at 4:02am

Hi,


Actually its question to Microsoft why API GetNextDlgTabItem never return back :-(
 
There can be easy workaround - remove this SetFocus :) or remove WE_EX_CONTROLPARENT from child Dialog style (Why do you need this style ??)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 03 October 2008 at 5:01am

WS_EX_CONTROLPARENT was added for some reason. Not sure why though :P

Could it have something to do with Alt-shortcuts? Anyway, I'll try to remove it! Thanks!
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.188 seconds.