![]() |
Another question about CXTResizeFormView |
Post Reply
|
| Author | |
ocoralan
Groupie
Joined: 14 November 2007 Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Topic: Another question about CXTResizeFormViewPosted: 14 November 2007 at 1:50pm |
|
Dear support:
I create a form view which is derived from CXTResizeFormView, I want the controls in this form view can be resizable, but I met a strange problem. When I launched my program, the dialog embeded in the form view can not be resizable, but when I maximize the window, It can be resizable. Why? My code is attached here: ///////////////////////////////////////////////////////////////////////////// // CFundViewPage IMPLEMENT_DYNCREATE(CFundViewPage, CXTResizeFormView) CFundViewPage::CFundViewPage() : CXTResizeFormView(CFundViewPage::IDD) { //{{AFX_DATA_INIT(CFundViewPage) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } CFundViewPage::~CFundViewPage() { } void CFundViewPage::DoDataExchange(CDataExchange* pDX) { CXTResizeFormView::DoDataExchange(pDX); //{{AFX_DATA_MAP(CFundViewPage) DDX_Control(pDX, IDOK, m_btnOK); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CFundViewPage, CXTResizeFormView) //{{AFX_MSG_MAP(CFundViewPage) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CFundViewPage diagnostics #ifdef _DEBUG void CFundViewPage::AssertValid() const { CXTResizeFormView::AssertValid(); } void CFundViewPage::Dump(CDumpContext& dc) const { CXTResizeFormView::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CFundViewPage message handlers void CFundViewPage::OnInitialUpdate() { CXTResizeFormView::OnInitialUpdate(); SetResize(IDOK, SZ_TOP_LEFT, SZ_TOP_LEFT); SetResize(IDCANCEL, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT); SetFormViewStyle(); } |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 November 2007 at 8:46am |
|
Hi,
Sorry this part gives nothing. Can you attach some small project ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
ocoralan
Groupie
Joined: 14 November 2007 Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 November 2007 at 9:34am |
|
I have resolved it just now, thank you.
|
|
![]() |
|
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 |