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. Steps to make a clickable area drawn by a user at run time

Steps to make a clickable area drawn by a user at run time

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionhelp
3 Posts 3 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.
  • J Offline
    J Offline
    joy007
    wrote on last edited by
    #1

    Actually, I am going to make an MFC application in which an user can draw a DFD(Data Flow Diagram).Practically it will be analogous to a normal "paint" program.But the difference is that ,it will consist of a circle tool ,to draw a process,which must be clickable so that if the process is multilevel,it can show up the inner DFD of the concerned process when clicked,in a child dialog. Would please let me know the steps in VC++!! My another problem is how can I implement a tool(same as TEXT button tool in MS PAINT) which can be used to put down a text at runtime in the user's pointed location within user's drawable area?:(

    J M 2 Replies Last reply
    0
    • J joy007

      Actually, I am going to make an MFC application in which an user can draw a DFD(Data Flow Diagram).Practically it will be analogous to a normal "paint" program.But the difference is that ,it will consist of a circle tool ,to draw a process,which must be clickable so that if the process is multilevel,it can show up the inner DFD of the concerned process when clicked,in a child dialog. Would please let me know the steps in VC++!! My another problem is how can I implement a tool(same as TEXT button tool in MS PAINT) which can be used to put down a text at runtime in the user's pointed location within user's drawable area?:(

      J Offline
      J Offline
      JWood
      wrote on last edited by
      #2

      I believe MFC does it by using CRegions you might want to just create an object that contains a CRegion as well as the information on your various objects, then you can either write a simple psuedo handler in OnLButtonDown, or a more complex system within the object itself.

      1 Reply Last reply
      0
      • J joy007

        Actually, I am going to make an MFC application in which an user can draw a DFD(Data Flow Diagram).Practically it will be analogous to a normal "paint" program.But the difference is that ,it will consist of a circle tool ,to draw a process,which must be clickable so that if the process is multilevel,it can show up the inner DFD of the concerned process when clicked,in a child dialog. Would please let me know the steps in VC++!! My another problem is how can I implement a tool(same as TEXT button tool in MS PAINT) which can be used to put down a text at runtime in the user's pointed location within user's drawable area?:(

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        have a look at this : UML Editor[^] ( by Johan Rosengren, here on CP ), it's could be a good start for your project.


        Maximilien Lincourt Your Head A Splode - Strong Bad

        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