|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Ed Kennedy
|
Feb 18, 2006 - 3:18 PM
|
I have a project in VS2003 that I embeded a property grid into a control bar. In VS2005 it is crashing. Straight from the wizard I’m changing the edit into a property grid and below is the code I’m using: In MainFrame.h CExtControlBar m_wndResizableBarEdit; //CExtEdit m_wndDockedCtrlEdit; CExtPropertyGridCtrl m_PGC; In MainFrame.cpp
m_wndResizableBarEdit.SetInitDesiredSizeVertical(
CSize( 200, 400 )
);
m_wndResizableBarEdit.SetInitDesiredSizeHorizontal(
CSize( 400, 200 )
); if( !m_wndResizableBarEdit.Create(
NULL, // _T("Optional control bar caption"), this,
ID_VIEW_RESIZABLEBAR_EDIT,
WS_CHILD|WS_VISIBLE|CBRS_TOP|CBRS_GRIPPER
|CBRS_TOOLTIPS
|CBRS_FLYBY
|CBRS_SIZE_DYNAMIC
|CBRS_HIDE_INPLACE
)
)
{
TRACE0( "Failed to create m_wndResizableBarEdit\n"); return -1; // fail to create
} // property grid if( !m_PGC.Create(
&m_wndResizableBarEdit,
m_wndResizableBarEdit.GetDlgCtrlID(),
CRect(0,0,0,0)
)
)
{
TRACE0( "Failed to create m_PGC\n"); return -1; // fail to create
}
Thanks!!
ed
|
|
Technical Support
|
Feb 19, 2006 - 10:33 AM
|
An SDI sample, which comes with Prof-UIS, was generated with the wizard. We modified it as you described and come across no crashes. Here are its source code and executable. Besides, nobody reported problems about using the property grid control inside resizable control bars before, though we know that some of our customers use this design. Would you send us your a test project that demonstrates the problem?
|
|
Ed Kennedy
|
Feb 19, 2006 - 5:36 PM
|
Sent. Let me know if it doesn’t come through! Many Thanks!
|
|
Technical Support
|
Feb 20, 2006 - 9:31 AM
|
|
|