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