Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Another question about CXTResizeFormView
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Another question about CXTResizeFormView

 Post Reply Post Reply
Author
Message
ocoralan View Drop Down
Groupie
Groupie


Joined: 14 November 2007
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote ocoralan Quote  Post ReplyReply Direct Link To This Post Topic: Another question about CXTResizeFormView
    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();
}

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ocoralan View Drop Down
Groupie
Groupie


Joined: 14 November 2007
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote ocoralan Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2007 at 9:34am
I have resolved it just now, thank you.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.