As I told already for simple window it works fine: inside of window constructor I call function Create:
Code:
Create(NULL, L"MyWindow", WS_VISIBLE, CRect(0,0,200,200));
Should I do something inside of class constructor (class, that is associated with resource IDD_FORMVIEW).
For the moment this constructor is empty.
Here is class declaration:
Code:
#pragma once

// CPixie3_DLG form view

class CPixie3_DLG : public CFormView
{
	DECLARE_DYNCREATE(CPixie3_DLG)

public:
	CPixie3_DLG();           // protected constructor used by dynamic creation
	virtual ~CPixie3_DLG();

public:
	enum { IDD = IDD_FORMVIEW };
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
};
and here is implementation:
Code:
// Pixie3_DLG.cpp : implementation file
//

#include "stdafx.h"
#include "Pixie3_GUI.h"
#include "Pixie3_DLG.h"


// CPixie3_DLG

IMPLEMENT_DYNCREATE(CPixie3_DLG, CFormView)

CPixie3_DLG::CPixie3_DLG()
	: CFormView(CPixie3_DLG::IDD)
{

}

CPixie3_DLG::~CPixie3_DLG()
{
}

void CPixie3_DLG::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
}

BEGIN_MESSAGE_MAP(CPixie3_DLG, CFormView)
END_MESSAGE_MAP()


// CPixie3_DLG diagnostics

#ifdef _DEBUG
void CPixie3_DLG::AssertValid() const
{
	CFormView::AssertValid();
}

#ifndef _WIN32_WCE
void CPixie3_DLG::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}
#endif
#endif //_DEBUG


// CPixie3_DLG message handlers
Thanks in advance

Pavel.