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. How to add control from userdefined class to dialog window.

How to add control from userdefined class to dialog window.

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
2 Posts 2 Posters 3 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.
  • M Offline
    M Offline
    Murugan k
    wrote on last edited by
    #1

    Hi, I write dialog box application using MFC. my questions is after run the application we are able to view the dialog box there is no problem. when user click the ok button in the dialog box then i have call userdefind class call MYclass. From the MYclass I need to create one ProgressBar control and placed to dialog box. Please clarify me how to create progressBar control from Myclass. Thanks.

    C 1 Reply Last reply
    0
    • M Murugan k

      Hi, I write dialog box application using MFC. my questions is after run the application we are able to view the dialog box there is no problem. when user click the ok button in the dialog box then i have call userdefind class call MYclass. From the MYclass I need to create one ProgressBar control and placed to dialog box. Please clarify me how to create progressBar control from Myclass. Thanks.

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      By reading your description, it seems your design is a bit wrong. In general, you shouldn't let other classses manipulate the controls on your dialog. What are you trying to achieve at a higher level ? Why does your class need to add a progress bar on your dialog directly ?

      Cédric Moonen Software developer
      Charting control [v2.0] OpenGL game tutorial in C++

      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