You still haven't answer my questions:
Quote Originally Posted by VictorN View Post
What exactly are you trying to achieve with the sheet resizing and what do all these magic numbers (10, 15) mean?
Besides, your code has memory leaks (at least in the case of m_poPropSheet->Create(...) fails...
Quote Originally Posted by npuleio View Post
Code:
BOOL CMyDialogDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	...
	// Extra initialization here
	m_poPropSheet = new CPropertySheet();
	pageConfig = new CPage_Config( m_poPropSheet );
	m_poPropSheet->AddPage(pageConfig);

	DWORD dwStyle = WS_VISIBLE | WS_CHILD;        
	DWORD dwExStyle = WS_EX_LEFT|WS_EX_CONTROLPARENT;
	if ( !m_poPropSheet->Create(this, dwStyle, dwExStyle) )
	{
		DestroyWindow();
		return FALSE;
	}

	...
	return TRUE;  // return TRUE  unless you set the focus to a control
}
Why do you create this property sheet in the heap?
Just declare the CPropertySheet instance, NOT a pointer, then create it...
Code:
// in the header:
protected:
	HICON m_hIcon;
	CPropertySheet m_PropSheet;

// in the .cpp:
	if ( !m_PropSheet.Create(this, dwStyle, dwExStyle) )
	{
		DestroyWindow();
		return FALSE;
	}
The same - for the property pages.