CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2013
    Location
    Edmonton, AB
    Posts
    1

    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

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: Creating Containers That Respond to User Actions

    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
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured