Creating Containers That Respond to User Actions
I am looking for direction on what topic I should be reading up on. I am new to C++ and Windows MFC.
This is my real world problem, in the context of the application user. (these term do not refer to OPP concepts)
I want to create shapes (containers) in an application that will respond and collect other objects;
Imagine a Windows frame, containing several 2 dimensional squares. I want to be able to drag and drop marbles into the squares,
and have the square retain and display the marbles in the square, in the order that they were dropped in.
How do I create the shapes, and how will the square sense when a marble is over it?
How would I create irregular shapes (a combination of lines and curves) that would be responsive to the marbles?
Thanks
Re: Creating Containers That Respond to User Actions
Quote:
I am new to C++ and Windows MFC.
Before delving into Windows MFC, you need a thorough knowledge of c++ and in particular classes.
For c++ I suggest
c++ primer plus
http://www.amazon.co.uk/C-Primer-Plu...1935860&sr=1-1
Accelerated c++
http://www.amazon.co.uk/Accelerated-...erated+c%2B%2B
For MFC I suggest
Programming Windows with MFC
http://www.amazon.co.uk/Programming-...%2B+mfc+proise
Re: Creating Containers That Respond to User Actions
What 2kaud said. You're intermingling several topics there - Inheritance, Data Structures and GUI, all of which are pretty involved, and way beyond anything anybody could tell you here. Immerse yourself in one or more of the books he suggested. Be prepared to spend several months at least.