Exemplo n.º 1
0
CMsgBoxDlg::CMsgBoxDlg(CWnd* pParent /*=NULL*/)
: CStringLoaderDlg<CBCGPDialog>(CMsgBoxDlg::IDD, pParent)
, m_nType(MB_OK)
{
	EnableVisualManagerStyle();
	m_bAutoClose = 0;
}
CActiveSourceView::CActiveSourceView()
	: CBCGPFormView(CActiveSourceView::IDD)
{
	m_nBlasterState = 0;
	m_bShowBlasterCtrl = FALSE;
	EnableVisualManagerStyle ();
}
Exemplo n.º 3
0
BOOL CDlgLoginMain::OnInitDialog()
{
	CBCGPDialog::OnInitDialog();

	m_btnClose.ShowWindow(SW_HIDE);
	
	HBITMAP hBitmapBk = NULL;
	GetNewBitmap(GetDlgLoginResImageData(CCxStaticRes::RT_DLG_LOGIN_MAIN_BK)->m_strPath)->GetHBITMAP(Color::White, &hBitmapBk);
	SetBackgroundImage(hBitmapBk);

	CustomResizeDlg();

	CString	str = GetRegForDeskClient( "LastUser" );
	if (str.IsEmpty())
	{
		m_EditUser.SetFocus();
	}
	else
	{
		m_EditUser.SetWindowText (str);
		m_EditPwd.SetFocus();
	}
	m_ErrorStatic.ShowWindow(SW_HIDE);

	EnableVisualManagerStyle(TRUE, TRUE);

	return TRUE;  // return TRUE unless you set the focus to a control
	// 异常: OCX 属性页应返回 FALSE
}
CInstallView::CInstallView()
: CBCGPFormView(CInstallView::IDD)
, m_InstallParam()
{
	// TODO: 在此处添加构造代码
	EnableVisualManagerStyle ();
}
CDlgLoginAdminServer::CDlgLoginAdminServer(CWnd* pParent /*=NULL*/)
	: CBCGPDialog(CDlgLoginAdminServer::IDD, pParent)
	, m_strLabel(_T("428GUI"))
	, m_strURL(_T("192.168.0.12"))
	, m_strUserName(_T("User"))
	, m_strPassword(_T(""))
{
	EnableVisualManagerStyle();
}
Exemplo n.º 6
0
CRecurrenceRuleDlg::CRecurrenceRuleDlg()
	: m_Rule (NULL)
{
	EnableVisualManagerStyle ();

	//{{AFX_DATA_INIT(CRecurrenceRuleDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}
Exemplo n.º 7
0
BOOL CCxBCGPDialog::OnInitDialog()
{
	__super::OnInitDialog();

	// TODO:  在此添加额外的初始化
	EnableVisualManagerStyle (TRUE, TRUE);
	SetIcon(AfxGetApp()->LoadIcon(IDI_ICON1),TRUE);
	return TRUE;  // return TRUE unless you set the focus to a control
	// 异常: OCX 属性页应返回 FALSE
}
BOOL CToolGridListDlg::OnInitDialog()
{
    CCxBCGPDialog::OnInitDialog();

    // TODO:  在此添加额外的初始化
    InitGridList();
    EnableVisualManagerStyle (TRUE, TRUE);
    return TRUE;  // return TRUE unless you set the focus to a control
    // 异常: OCX 属性页应返回 FALSE
}
CDlgSPSSetup::CDlgSPSSetup(CWnd* pParent /*=NULL*/)
: CBCGPDialog(CDlgSPSSetup::IDD, pParent)
, m_csSPSFilePath(_T(""))
{
	EnableVisualManagerStyle();
	m_csLocalOptXMLFile = CLIENTDIR_XMLFILE;
	m_csLocalOptXMLFile += OPERATION_XMLFILE;
	m_csLocalLineXMLFile = CLIENTDIR_XMLFILE;
	m_csLocalLineXMLFile += MATRIX_XMLFILE;
	m_csLocalLineInitTXTFile = CLIENTDIR_XMLFILE;
	m_csLocalLineInitTXTFile += LINEINIT_TXTFILE;
	GetCurrentDirectory(MAX_PATH, m_wcExeCurrentPath);
}
Exemplo n.º 10
0
CDlgCapture::CDlgCapture(LPCTSTR szPath, LPCTSTR lpszImageName, CWnd* pParent /*= NULL*/)
	: CIBADialog(CDlgCapture::IDD, pParent)
{

	m_strImageName = lpszImageName;

	//CIBAHelpper::FillSuitableString(m_strImageName, 10, _T('0'));

	EnableVisualManagerStyle(TRUE);
	m_bOK = FALSE;

	m_capImage.SetImagesPath(szPath);
}
Exemplo n.º 11
0
CNetBarPropertySheet::CNetBarPropertySheet(CWnd* pParentWnd /*= NULL*/)
: CBCGPPropertySheet(IDS_NETBARCONFIG, pParentWnd)
{
	m_psh.dwFlags |= PSH_NOAPPLYNOW;

	SetLook(CBCGPPropertySheet::PropSheetLook_List);
	//SetLook(CBCGPPropertySheet::PropSheetLook_Tabs);

	//AddPage(&m_NetBarInfo);
	//AddPage(&m_NetBarConfig);
	
	EnableVisualManagerStyle();
}
Exemplo n.º 12
0
CBCGPWindowsManagerDlg::CBCGPWindowsManagerDlg(CBCGPMDIFrameWnd* pMDIFrame, BOOL bHelpButton)
	: CBCGPDialog(CBCGPWindowsManagerDlg::IDD, pMDIFrame),
	m_pMDIFrame (pMDIFrame),
	m_bHelpButton (bHelpButton)
{
	//{{AFX_DATA_INIT(CBCGPWindowsManagerDlg)
	//}}AFX_DATA_INIT
	ASSERT_VALID (m_pMDIFrame);

	m_bMDIActions = TRUE;

	EnableVisualManagerStyle (globalData.m_bUseVisualManagerInBuiltInDialogs, TRUE);
}
CClientConfigPropertySheet::CClientConfigPropertySheet(CWnd* pParentWnd)
: CIBASheet(IDS_CLIENTSET, pParentWnd)
{
	m_psh.dwFlags |= PSH_NOAPPLYNOW;

	SetLook(CIBASheet::PropSheetLook_List);

	AddPage(&m_CommonConfig);
	AddPage(&m_BundleTimePage);
	AddPage(&m_UnlockPage);

	EnableVisualManagerStyle();
}
Exemplo n.º 14
0
CBCGPKeyMapDlg::CBCGPKeyMapDlg(CFrameWnd* pWndParentFrame,
							 BOOL bEnablePrint /* = FALSE */,
							 BOOL bShowCommandsWithKeyOnly /* = FALSE */)
	:	CBCGPDialog(CBCGPKeyMapDlg::IDD, pWndParentFrame),
		m_bEnablePrint (bEnablePrint),
		m_bShowCommandsWithKeyOnly(bShowCommandsWithKeyOnly)
{
	m_pWndParentFrame = pWndParentFrame;

	//{{AFX_DATA_INIT(CBCGPKeyMapDlg)
	//}}AFX_DATA_INIT

	m_hAccelTable	= NULL;
	m_lpAccel		= NULL;
	m_nAccelSize	= 0;

	m_pDlgCust		= NULL;

	m_nSortedCol = 0;
	m_bSortAscending = TRUE;
	m_hInstDefault = NULL;

	m_bIsLocal = TRUE;

	m_pWndRibbonBar = NULL;
	m_bItemWasAdded = FALSE;

#ifndef BCGP_EXCLUDE_RIBBON
	CBCGPFrameWnd* pFrameWnd = DYNAMIC_DOWNCAST(CBCGPFrameWnd, m_pWndParentFrame);
	if (pFrameWnd != NULL)
	{
		if (pFrameWnd->GetRibbonBar()->GetSafeHwnd() != NULL && pFrameWnd->GetRibbonBar()->IsWindowVisible())
		{
			m_pWndRibbonBar = pFrameWnd->GetRibbonBar();
		}
	}
	else
	{
		CBCGPMDIFrameWnd* pMDIFrameWnd = DYNAMIC_DOWNCAST(CBCGPMDIFrameWnd, m_pWndParentFrame);
		if (pMDIFrameWnd != NULL)
		{
			if (pMDIFrameWnd->GetRibbonBar()->GetSafeHwnd() != NULL && pMDIFrameWnd->GetRibbonBar()->IsWindowVisible())
			{
				m_pWndRibbonBar = pMDIFrameWnd->GetRibbonBar();
			}
		}
	}
#endif

	EnableVisualManagerStyle (globalData.m_bUseVisualManagerInBuiltInDialogs, TRUE);
}
Exemplo n.º 15
0
CBCGPRibbonItemDlg::CBCGPRibbonItemDlg(CBCGPToolBarImages& images, CWnd* pParent /*=NULL*/)
	: CBCGPDialog(CBCGPRibbonItemDlg::IDD, pParent),
	m_images(images)
{
	//{{AFX_DATA_INIT(CBCGPRibbonItemDlg)
	m_strName = _T("");
	//}}AFX_DATA_INIT

	m_iSelImage = -1;
	m_bIsLocal = TRUE;

	EnableLayout();
	EnableVisualManagerStyle (globalData.m_bUseVisualManagerInBuiltInDialogs, TRUE);
}
Exemplo n.º 16
0
CGotoDayDialog2::CGotoDayDialog2(const COleDateTime& date, 
	int nFirstDayOfWeek /*= 0*/, 
	CWnd* pParent /*=NULL*/)
	: CBCGPDialog(CGotoDayDialog2::IDD, pParent)
	, m_Date (date)
	, m_nFirstDayOfWeek(0)
{
	EnableVisualManagerStyle ();

	//{{AFX_DATA_INIT(CGotoDayDialog2)
	//}}AFX_DATA_INIT

	ASSERT (0 <= nFirstDayOfWeek);
	ASSERT (nFirstDayOfWeek <= 6);

	m_nFirstDayOfWeek = nFirstDayOfWeek;
}
Exemplo n.º 17
0
CBCGPColorPage2::CBCGPColorPage2() : CBCGPPropertyPage(CBCGPColorPage2::IDD)
{
	//{{AFX_DATA_INIT(CBCGPColorPage2)
	m_r = 0;
	m_b = 0;
	m_g = 0;
	m_l = 0;
	m_h = 0;
	m_s = 0;
	//}}AFX_DATA_INIT

	m_pDialog = NULL;
	m_bIsReady = FALSE;
	m_bInUpdate = FALSE;

	EnableVisualManagerStyle (globalData.m_bUseVisualManagerInBuiltInDialogs);
}
Exemplo n.º 18
0
BOOL CNewSvrDlg::OnInitDialog()
{
	CBCGPDialog::OnInitDialog();
	EnableVisualManagerStyle();

	std::list<std::string> ip_list;
	bool bRet = false;

	bRet = CUEServer::GetIpList(ip_list);
	CComboBox *pBox =(CComboBox *) GetDlgItem(IDC_COMBO_HOST_IP);
	ASSERT(pBox);
	if(pBox)
	{
		pBox->ResetContent();
		CString szTxt;

		if(bRet && ip_list.size())
		{
			std::list <std::string>::iterator iter = ip_list.begin();
			for ( ; iter != ip_list.end(); ++iter)
			{
				szTxt = CA2W(iter->c_str());
				pBox->AddString( szTxt  );
			}
		}
		szTxt = _T("0.0.0.0");
		pBox->AddString( szTxt  );
// 		if (pBox->GetCount() <= 0)
// 		{
// 			szTxt = _T("127.0.0.1");
// 			pBox->AddString( szTxt  );
// 		}
		if (pBox->GetCount())
		{
//			pBox->SetCurSel(pBox->GetCount()-1);
			pBox->SetCurSel( 0 );
		}
	}


	// TODO:  在此添加额外的初始化

	return TRUE;  // return TRUE unless you set the focus to a control
	// 异常: OCX 属性页应返回 FALSE
}
Exemplo n.º 19
0
CBCGPGridFilterListDlg::CBCGPGridFilterListDlg(UINT uiFilterCmd, 
											   const CStringList& lstValues,
											   CBCGPBaseFilterPopupMenu* pParent /*=NULL*/)
	: CBCGPDialog(CBCGPGridFilterListDlg::IDD, pParent),
	m_uiFilterCmd (uiFilterCmd)
{
	//{{AFX_DATA_INIT(CBCGPGridFilterListDlg)
	m_strSearch = _T("");
	//}}AFX_DATA_INIT

	EnableVisualManagerStyle();
	EnableLayout();
	SetWhiteBackground();

	m_lstValues.AddHead((CStringList*)&lstValues);

	m_bIsLocal = TRUE;
	m_bIsEmptyMenu = FALSE;
}
Exemplo n.º 20
0
BOOL CSetEditDlg::OnInitDialog()
{
	CBCGPDialog::OnInitDialog();

	InitLang();

	CBCGPFontComboBox::m_bDrawUsingFont = TRUE;
	m_editFont.Setup();
	m_editSize.SetItemHeight(-1, m_editSize.GetItemHeight(-1) + 3);
	m_editStyle.SetItemHeight(-1, m_editStyle.GetItemHeight(-1) + 3);	
	m_btnDefaultLink.SizeToContent();

	InitFont();

	if (!IsVisualManagerStyle())
	{
		EnableVisualManagerStyle(TRUE, TRUE);
	}

	GetDlgItem(IDCANCEL)->SetFocus();
	return FALSE;
}
Exemplo n.º 21
0
CSetOfIBAPropertySheet::CSetOfIBAPropertySheet(CWnd* pParentWnd)
: CIBASheet(IDS_IBASET, pParentWnd)
{
	m_psh.dwFlags |= PSH_NOAPPLYNOW;

	SetLook(CIBASheet::PropSheetLook_List);

	AddPage(&m_IBASetPage);
	AddPage(&m_MonitorSetPage);
	AddPage(&m_MonitorSetPage2);
	AddPage(&m_OnOffDutySetPage);
	AddPage(&m_BusinessSetPage);
	AddPage(&m_CreditSetPage);
	AddPage(&m_JXCSetPage);
	AddPage(&m_TTSSetPage);
	AddPage(&m_SeatSetPage);
	AddPage(&m_PrintSetPage);
	AddPage(&m_ClearDataSetPage);
	
	
	EnableVisualManagerStyle(); 
}
CBCGPImageEditDlg::CBCGPImageEditDlg(CBitmap* pBitmap, CWnd* pParent /*=NULL*/,
									 int nBitsPixel /* = -1 */) :
	CBCGPDialog(CBCGPImageEditDlg::IDD, pParent),
	m_pBitmap (pBitmap),
	m_wndLargeDrawArea (this)
{
	ASSERT_VALID (m_pBitmap);

	BITMAP bmp;
	m_pBitmap->GetBitmap (&bmp);

	m_sizeImage = CSize (bmp.bmWidth, bmp.bmHeight);

	m_nBitsPixel = (nBitsPixel == -1) ? bmp.bmBitsPixel : nBitsPixel;
	ASSERT (m_nBitsPixel >= 4);	// Monochrome bitmaps are not supported

	m_bIsLocal = TRUE;

	//{{AFX_DATA_INIT(CBCGPImageEditDlg)
	//}}AFX_DATA_INIT

	EnableVisualManagerStyle (globalData.m_bUseVisualManagerInBuiltInDialogs, TRUE);
}
Exemplo n.º 23
0
BOOL CBCGPMessageBox::OnInitDialog()
{
	if (!CBCGPDialog::OnInitDialog ())
	{
		return FALSE;
	}

	EnableVisualManagerStyle (!m_Params.bUseNativeControls, !m_Params.bUseNativeCaption);

	SetWindowText (m_strMessageCaption);

	CenterWindow ();

	::MessageBeep (m_Params.dwStyle & MB_ICONMASK);

	if (m_nDefaultButtonIndex >= 0 && m_nDefaultButtonIndex < (int)m_arrButtons.GetSize ())
	{
		m_arrButtons[m_nDefaultButtonIndex]->SetFocus ();
		return FALSE; // Focus changed
	}

	return TRUE;
}
Exemplo n.º 24
0
CGotoDayDialog::CGotoDayDialog(const COleDateTime& date, 
	CBCGPPlannerManagerCtrl::BCGP_PLANNER_TYPE type,
	int nFirstDayOfWeek /*= 0*/, 
	CWnd* pParent /*=NULL*/)
	: CBCGPDialog(CGotoDayDialog::IDD, pParent)
	, m_Date (date)
	, m_Type (type)
	, m_nFirstDayOfWeek(0)
{
	EnableVisualManagerStyle ();

	//{{AFX_DATA_INIT(CGotoDayDialog)
	m_TypeIndex = -1;
	//}}AFX_DATA_INIT

	ASSERT (0 <= nFirstDayOfWeek);
	ASSERT (nFirstDayOfWeek <= 6);

	m_nFirstDayOfWeek = nFirstDayOfWeek;

	switch (m_Type)
	{
	case CBCGPPlannerManagerCtrl::BCGP_PLANNER_TYPE_DAY:
		m_TypeIndex = 0;
		break;
	case CBCGPPlannerManagerCtrl::BCGP_PLANNER_TYPE_WORK_WEEK:
		m_TypeIndex = 1;
		break;
	case CBCGPPlannerManagerCtrl::BCGP_PLANNER_TYPE_WEEK:
		m_TypeIndex = 2;
		break;
	case CBCGPPlannerManagerCtrl::BCGP_PLANNER_TYPE_MONTH:
		m_TypeIndex = 3;
		break;
	}
}
Exemplo n.º 25
0
void CDlgFor::CreateForFrame()
{
	CRect rect;
	GetDlgItem(IDC_STATIC_WEB)->GetWindowRect(rect);
	ScreenToClient(rect);
	CRect rectTree;
	GetDlgItem(IDC_STATIC_GRID)->GetWindowRect(rectTree);
	ScreenToClient(rectTree);
	CRect rectBtn;
	m_btnDelete.GetWindowRect(rectBtn);
	ScreenToClient(rectBtn);
	m_rectSel = rect;
	rect.top = rectBtn.bottom + 1;
	m_rectSel.bottom = rect.top + 1;
	rect.bottom = rectTree.bottom - 100;
	m_rectForFrame = rect;

	rect.top = m_rectForFrame.bottom - 1;
	rect.bottom = rectTree.bottom;
	m_rectLimit = rect;

	m_rectLimitText = m_rectLimit;

	m_rectLimit.top += 30;
	m_rectLimitText.bottom = m_rectLimit.top + 1;

	m_staSel.Create(NULL, WS_VISIBLE | WS_BORDER, m_rectSel, this);
	m_staForFrame.Create(NULL, WS_VISIBLE | WS_BORDER, m_rectForFrame, this);
	m_staLimitText.Create(NULL, WS_VISIBLE | WS_BORDER, m_rectLimitText, this);
	m_staLimit.Create(NULL, WS_VISIBLE | WS_BORDER, m_rectLimit, this);
	m_rectLimit.DeflateRect(1, 1, 1, 1);
	m_dlgForLimit.Create(IDD_FOR_LIMIT, this);
	m_dlgForLimit.MoveWindow(m_rectLimit);
	m_dlgForLimit.ShowWindow(SW_SHOW);

	m_rectForFrame.DeflateRect(1, 1, 1, 1);


	CClientDC dc(this);
	CString strText;
	CSize sz;

	strText = "循环限制";
	sz = dc.GetTextExtent(strText); 
	rect = m_rectLimitText;
	rect.top += 10;
	rect.left += 20;
	rect.right = rect.left + sz.cx;
	rect.bottom = rect.top + sz.cy;
	m_staLimitStr.Create(strText, WS_VISIBLE, rect, this);
	m_staLimitStr.SetFont(GetFont());

	strText = "请选择循环条件:";
	sz = dc.GetTextExtent(strText); 
	rect = m_rectSel;
	rect.top += 10;
	rect.left += 20;
	rect.right = rect.left + sz.cx;
	rect.bottom = rect.top + sz.cy;
	m_staSelText.Create(strText, WS_VISIBLE, rect, this);
	m_staSelText.SetFont(GetFont());

	rect.OffsetRect(rect.Width() - 10, -3);
	rect.right += 100;

	m_boxFor.Create(WS_VISIBLE | CBS_DROPDOWNLIST, rect, this, IDC_FOR_TYPE);
	m_boxFor.SetFont(GetFont());
	for(int i = 0; i < Count; i++)
	{
		m_boxFor.AddString(m_strForType[i]);
	}
	m_boxFor.SelectString(0, m_strForType[m_curForType]);
	EnableVisualManagerStyle (TRUE, TRUE);

	for(int i = 0; i < Count; i++)
	{
		switch (i)
		{
		case ForStep:
			m_pDlgFor[i] = new CDlgForStep(this);
			m_pDlgFor[i]->Create(IDD_FOR_STEP, this);
			break;
		case ForArray:
			m_pDlgFor[i] = new CDlgForArray(this);
			m_pDlgFor[i]->Create(IDD_FOR_ARRAY, this);
			break;
		case ForEach:
			m_pDlgFor[i] = new CDlgForEach(this);
			m_pDlgFor[i]->Create(IDD_FOR_EACH, this);
			break;
		case While:
			m_pDlgFor[i] = new CDlgWhile(this);
			m_pDlgFor[i]->Create(IDD_WHILE, this);
			break;
		case DoWhile:
			m_pDlgFor[i] = new CDlgDoWhile(this);
			m_pDlgFor[i]->Create(IDD_WHILE, this);
			break;
		}
		m_pDlgFor[i]->MoveWindow(m_rectForFrame);
		m_wndGridTree.AddListener(m_pDlgFor[i]); //参数事件监听
	}

	for(int i = 0; i < (int)m_wndGridTree.m_vParams.size(); i++)
	{
		for(int j = 0; j < (int)m_wndGridTree.m_vListeners.size(); j++)
		{
			m_wndGridTree.m_vListeners[j]->AddParam(m_wndGridTree.m_vParams[i]->m_strName.c_str());
		}
	}

	ActivateDlgForByIndex(GetCurForType());

}
CDlgStudentsSetting::CDlgStudentsSetting(CWnd* pParent /*=NULL*/)
	: CBCGPDialog(CDlgStudentsSetting::IDD, pParent)
{
	EnableVisualManagerStyle();
}
Exemplo n.º 27
0
CEditDialogBar::CEditDialogBar()
{
	EnableVisualManagerStyle ();
}
CDlgSourceType::CDlgSourceType(CWnd* pParent /*=NULL*/)
	: CBCGPDialog(CDlgSourceType::IDD, pParent)
{
	EnableVisualManagerStyle();
}
Exemplo n.º 29
0
CIBADialog::CIBADialog(UINT nIDTemplate, CWnd *pParent/*= NULL*/)
: CStringLoaderDlg<CBCGPDialog>(nIDTemplate, pParent)
, m_nDialogResult(IDCANCEL)
{
	EnableVisualManagerStyle();
}
CBCGPTextFormatDlg::CBCGPTextFormatDlg(CBCGPTextFormat& textFormat, CBCGPTextFormatDlgOptions* pOptions, CWnd* pParent /*=NULL*/)
	: CBCGPDialog(CBCGPTextFormatDlg::IDD, pParent),
	m_textFormat(textFormat)
{
	//{{AFX_DATA_INIT(CBCGPTextFormatDlg)
	m_bClipText = m_textFormat.IsClipText();
	m_strTextAngle = _T("0");
	m_nHorzAlignment = (int)m_textFormat.GetTextAlignment();
	m_strTextSize = _T("");
	m_nTextStyle = m_textFormat.GetFontStyle();
	m_nVertAlignment = m_textFormat.GetTextVerticalAlignment();
	m_nTextWeight = m_textFormat.GetFontWeight() == 950 ? 9 : m_textFormat.GetFontWeight() / 100 - 1;
	m_bWordWrap = m_textFormat.IsWordWrap();
	m_nLocaleIndex = 0;
	m_bUnderline = textFormat.IsUnderline();
	m_bStrikethrough = textFormat.IsStrikethrough();
	//}}AFX_DATA_INIT

	if (pOptions != NULL)
	{
		m_Options = *pOptions;

		if (!m_Options.m_brFill.IsEmpty())
		{
			m_wndPreview.m_brFill = m_Options.m_brFill;
		}

		if (!m_Options.m_brText.IsEmpty())
		{
			m_wndPreview.m_brText = m_Options.m_brText;
		}
	}

	double dblTextSize = m_textFormat.GetFontSize();
	m_bIsNegativeHeight = FALSE;

	if (dblTextSize < 0.0)
	{
		CWindowDC dc(NULL);

		int nLogY = dc.GetDeviceCaps(LOGPIXELSY);
		if (nLogY != 0)
		{
			dblTextSize = MulDiv(72, (int)(-100 * dblTextSize), nLogY * 100);
			m_bIsNegativeHeight = TRUE;
		}
	}

	DoubleToString(m_textFormat.GetDrawingAngle(), m_strTextAngle);
	DoubleToString(dblTextSize, m_strTextSize);

	m_bIsLocal = TRUE;

	m_wndPreview.m_pGM = CBCGPGraphicsManager::CreateInstance();
	ASSERT_VALID(m_wndPreview.m_pGM);

	m_bUseCharSet = !m_wndPreview.m_pGM->IsSupported(BCGP_GRAPHICS_MANAGER_LOCALE);

	m_wndPreview.m_pFormat = &m_textFormatPreview;

	m_wndPreview.m_HorzAlign = (CBCGPTextFormat::BCGP_TEXT_ALIGNMENT)m_nHorzAlignment;
	m_wndPreview.m_VertAlign = (CBCGPTextFormat::BCGP_TEXT_ALIGNMENT)m_nVertAlignment;

#ifndef _BCGSUITE_
	EnableVisualManagerStyle (globalData.m_bUseVisualManagerInBuiltInDialogs, TRUE);
#endif
}