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. Dialog with different controls created at runtime

Dialog with different controls created at runtime

Scheduled Pinned Locked Moved C / C++ / MFC
help
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.
  • S Offline
    S Offline
    SVPG
    wrote on last edited by
    #1

    I have an editor applications which should bring up a window or dialog with the list of keywords. Based on the selected keyword the window should show the appropriate controls in the window. Filling up input into these controls and clicking insert the keyword should get inserted into the editor. PLease someone help with some ideas on this.

    R 1 Reply Last reply
    0
    • S SVPG

      I have an editor applications which should bring up a window or dialog with the list of keywords. Based on the selected keyword the window should show the appropriate controls in the window. Filling up input into these controls and clicking insert the keyword should get inserted into the editor. PLease someone help with some ideas on this.

      R Offline
      R Offline
      Robert A T Kaldy
      wrote on last edited by
      #2

      The simplest approach is, that you create all controls in Dialog editor. In OnInitDialog you parse the keywords and set CWnd::ModifyStyle(WS_VISIBLE, 0, 0) to appropriate controls. This function makes the controls invisible. Robert-Antonio "Love without sex is like a fish without antlers"

      B 1 Reply Last reply
      0
      • R Robert A T Kaldy

        The simplest approach is, that you create all controls in Dialog editor. In OnInitDialog you parse the keywords and set CWnd::ModifyStyle(WS_VISIBLE, 0, 0) to appropriate controls. This function makes the controls invisible. Robert-Antonio "Love without sex is like a fish without antlers"

        B Offline
        B Offline
        BlackDice
        wrote on last edited by
        #3

        also, I would put each set into a vector collection so that for each collection you can use the iterator to iterate through each one and set the visibility appropriately. Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store My articles[^] bdiamond :zzz:

        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