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. MFC Control Design Pattern Question

MFC Control Design Pattern Question

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++graphicsdesigngame-dev
1 Posts 1 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.
  • L Offline
    L Offline
    largeinsd
    wrote on last edited by
    #1

    Hi, I am designing a series of MFC controls for inputting basic information into a DirectX Modeling program. I would like to make those controls widely available by publishing them on this (or some similar) site. This is my first time doing this, so before I put them out there for feedback and general use, I thought I'd get some input on what design patterns would be easiest or most conventional to use. Basically I am working on a control that will allow a user to input parameters for the following basic DirectX meshes: Polygon (2 params) Box (3 params) Sphere (3 params) Cylinder (5 params) Torus (4 params) Text (3 params) and it's materials (10 params, or one struct). So as you can see this control will contain a lot of information. Should I allow the user to access this material through one giant struct or wrapper class containing all the data, or by memberwise retrieval? Should the user gain access to the data by references or by values? Any references on MFC control design patterns appreciated. Thanks - Jason

    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