Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VS 2008 - CDialogBar - older application

VS 2008 - CDialogBar - older application

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studioquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tony Teveris
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups