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. using a control from a .dll

using a control from a .dll

Scheduled Pinned Locked Moved C / C++ / MFC
javascriptdata-structureslearning
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.
  • A Offline
    A Offline
    alex__b
    wrote on last edited by
    #1

    I wrote this CTreeCtrl-based control and put it in a .dll The control consists of a dialog/resource class DIALOG_TREE and a private tree-manipulating class. Now to use this control in a app, I create an empty dialog as a placeholder for the control, then I declare a global pointer to the class DIALOG_TREE* pTreeDialog;] then in DoDataExchange() pTreeDialog=new DIALOG_TREE(); pTreeDialog->Create(IDD_DIALOG_TREE,this); pTreeDialog->SetWindowPos(NULL,x+25,y,cx,cy,SWP_SHOWWINDOW); pTreeDialog->ShowWindow(SW_SHOW); There are two problems which I can't seem to be able to solve: i. I would like to call the control directly (response = pTreeDialog->do Modal()) so I would be able to react. (and maybe dispense with the empty dialog in the app resources) ii. The tree manipulating class builds a list of items and I can't seem to succeed passing the list back to the client app. Any suggestions would be appreciated. TIA alex

    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