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. TreeView in dockable DialogBar

TreeView in dockable DialogBar

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestionlearningworkspace
2 Posts 2 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.
  • N Offline
    N Offline
    NTense
    wrote on last edited by
    #1

    I'm writing a 3D modeling app using MFC MDI framework. I'm trying to get a dockable dialog bar with a Treeview control to display a list of objects within the project's workspace, but I can't seem to access the treeview for initialization or manipulation. I've created a dialog template in the resource editor with a treeview control in the dialog. I then created a class for the dialog box/bar, and assigned a variable to the treecontrol (m_tree). I then declared the entire dialogbar in CMainFrame. The dialog bar loads, and is dockable, but I can't seem to initialize it anywhere. I've tried initilizing it in the Dialog class OnCreate, and OnInitDialog, but it has no effect. I also tried to apply afx_msg overrides to the CMainFrame class, but I get an error saying I can't call a static function (something along those lines). Does anyone know how I can get this thing running, or know of any good articles/tutorials that deal with a dockable treeview in an MDI application?

    B 1 Reply Last reply
    0
    • N NTense

      I'm writing a 3D modeling app using MFC MDI framework. I'm trying to get a dockable dialog bar with a Treeview control to display a list of objects within the project's workspace, but I can't seem to access the treeview for initialization or manipulation. I've created a dialog template in the resource editor with a treeview control in the dialog. I then created a class for the dialog box/bar, and assigned a variable to the treecontrol (m_tree). I then declared the entire dialogbar in CMainFrame. The dialog bar loads, and is dockable, but I can't seem to initialize it anywhere. I've tried initilizing it in the Dialog class OnCreate, and OnInitDialog, but it has no effect. I also tried to apply afx_msg overrides to the CMainFrame class, but I get an error saying I can't call a static function (something along those lines). Does anyone know how I can get this thing running, or know of any good articles/tutorials that deal with a dockable treeview in an MDI application?

      B Offline
      B Offline
      bneacetp
      wrote on last edited by
      #2

      These articles might help some: http://www.codeproject.com/docking/pinnabledock.asp#xxxx[^] http://www.codeproject.com/docking/sizecbar.asp[^] http://www.codeproject.com/docking/sizing_tabctl.asp[^] If you are determined to use the CDialogBar class, there used to be (and still should be in their dockable windows section I think) an article on codeguru.com which dealt with intializing controls in a CDialogBar object. I can't access their site at the moment though... :~ Good luck in your efforts! :) Happy Programming and God Bless! Internet::WWW::CodeProject::bneacetp

      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