Print Page | Close Window

Another question about CXTResizeFormView

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8787
Printed Date: 14 November 2025 at 3:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Another question about CXTResizeFormView
Posted By: ocoralan
Subject: Another question about CXTResizeFormView
Date Posted: 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();
}




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


Posted By: ocoralan
Date Posted: 15 November 2007 at 9:34am
I have resolved it just now, thank you.



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