Bug introduced in 12.0.2 |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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!
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Please have a look at my sample project!
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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!
|
|
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 |