Print Page | Close Window

Bug introduced in 12.0.2

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=12279
Printed Date: 25 November 2024 at 12:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug introduced in 12.0.2
Posted By: znakeeye
Subject: Bug introduced in 12.0.2
Date 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!
 
http://forum.codejock.com/uploads/20081001_172133_PropertyGridPro.zip - uploads/20081001_172133_PropertyGridPro.zip



Replies:
Posted By: Oleg
Date 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


Posted By: znakeeye
Date Posted: 01 October 2008 at 5:22pm
Please have a look at my sample project!


Posted By: Oleg
Date 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


Posted By: znakeeye
Date 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!



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