Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » can not change window size after apply skin Collapse All
Subject Author Date
delu qiu Jul 12, 2006 - 11:45 AM

Hi,

My dialog window always use design-time size after I apply skin to it.
skin works fine, but MoveWindow() not work.

class CBSEPTHRInstDlg:public CExtNCW < CExtResizableDialog>
{
....
}

CBSEPTHRInstDlg::CBSEPTHRInstDlg(CWnd* pParent /*=NULL*/)
    : CExtNCW < CExtResizableDialog > ( CBSEPTHRInstDlg::IDD,pParent )
{
...
}


int CBSEPTHRInstDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    if (CDialog::OnCreate(lpCreateStruct) == -1)
        return -1;

CString strPath = "C:\\Aqua.xml";

    ASSERT( ! strPath.IsEmpty() );
CExtPaintManagerSkin * pPM = new CExtPaintManagerSkin;
    if( ! pPM->m_Skin.Load( LPCTSTR(strPath) ) )
    {
        ::AfxMessageBox( _T("Failed to load initial skin.") );
        delete pPM;
    }
    else
        g_PaintManager.InstallPaintManager( pPM );        
    
    return 0;
}

Technical Support Jul 13, 2006 - 12:21 PM

We cannot see where you invoke MoveWindow(). Would you send us more code or a test project that demonstrates the problem?