VS 2008 - CDialogBar - older application
-
Converted an older application to VS 2008, this is NOT a new application. This code has been used for years with no problems. Now when built with VS 2008 the CDialogBar is no longer visable but when I check the code (debugging) everything is going through the motions as if very thing is fine. So does anyone have any ideas? TIA IDD_HRULE_DIALOG DIALOG 0, 0, 511, 21 STYLE DS_SETFONT | WS_CHILD FONT 8, "MS Sans Serif" BEGIN CONTROL "",IDC_HRULER,"Static",SS_WHITERECT | SS_NOTIFY | SS_SUNKEN,43,4,429,12 END // just who is derived from whom class CFrameWnd : public CWnd class CMDIChildWnd : public CFrameWnd class CChildFrame : public CMDIChildWnd class CRuleHDlgBar : public CDialogBar // create code int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1) return -1; // create ruler dialog bars if (!m_RuleHDlgBar.Create(this, IDD_HRULE_DIALOG,CBRS_TOP| CBRS_SIZE_FIXED,-1) || !m_RuleHDlgBar.InitDialog()) { TRACE0("Failed to create dialog bar\n"); return -1; // fail to create } if (!m_RuleVDlgBar.Create(this, IDD_VRULE_DIALOG,CBRS_LEFT| CBRS_SIZE_FIXED|CBRS_ORIENT_VERT,-1) || !m_RuleVDlgBar.InitDialog()) { TRACE0("Failed to create dialog bar\n"); return -1; // fail to create } Like I said, the actual code to draw, size the dialogbar executes fine.
Tony Teveris Gerber Scientific Products Senior Software Engineer Phone: 860 648 8151 Fax: 860 648 8214 83 Gerber Road West South Windsor, CT 06074