CBCGPRibbonBackstagePagePrint::CBCGPRibbonBackstagePagePrint(UINT nIDTemplate/* = 0*/, CWnd* pParent /*=NULL*/) : CBCGPDialog (nIDTemplate == 0 ? CBCGPRibbonBackstagePagePrint::IDD : nIDTemplate, pParent) , m_wndPreview (NULL) , m_pPrintView (NULL) { //{{AFX_DATA_INIT(CBCGPRibbonBackstagePagePrint) m_nCopies = 1; m_nPageFrom = 1; m_nPageTo = 0xFFFF; //}}AFX_DATA_INIT EnableLayout(); #ifndef GetDefaultPrinter m_lpfnGetDefaultPrinterA = NULL; m_lpfnGetDefaultPrinterW = NULL; HMODULE hModule = ::GetModuleHandle(_T("winspool.drv")); if (hModule != NULL) { m_lpfnGetDefaultPrinterA = (LPFNGetDefaultPrinterA)::GetProcAddress(hModule, "GetDefaultPrinterA"); m_lpfnGetDefaultPrinterW = (LPFNGetDefaultPrinterW)::GetProcAddress(hModule, "GetDefaultPrinterW"); } #endif }
CBCGPRibbonBackstagePageRecent::CBCGPRibbonBackstagePageRecent(CWnd* pParent /*=NULL*/) : CBCGPDialog(CBCGPRibbonBackstagePageRecent::IDD, pParent) { //{{AFX_DATA_INIT(CBCGPRibbonBackstagePageRecent) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT EnableLayout(); m_wndRecentFolders.SetFoldersMode(); m_bIsLocal = TRUE; m_nFlags = 0xFFFF; }
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); }
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; }
CBackStagePageInfo::CBackStagePageInfo(CWnd* pParent /*=NULL*/) : CBCGPDialog(CBackStagePageInfo::IDD, pParent) { EnableLayout(); }