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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Storing windows positions in registry???

Storing windows positions in registry???

Scheduled Pinned Locked Moved Managed C++/CLI
windows-admintutorialquestion
2 Posts 2 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.
  • R Offline
    R Offline
    richiemac
    wrote on last edited by
    #1

    Hi all, I'm storing windows positions in the registry - which I can do with no problems. What I'm asking is if there is a way to store two forms of the same type. I obviously can't use the form name as they will be the same. Does the form class provide any attribute that will differentiate between two forms. for example - I opened two logForms in my application. When I store the positions of the logForms is there any way to set the name element of the reg entry so that I know it's a logForm but I also know that there are two of them. Hope this makes sense.

    Q 1 Reply Last reply
    0
    • R richiemac

      Hi all, I'm storing windows positions in the registry - which I can do with no problems. What I'm asking is if there is a way to store two forms of the same type. I obviously can't use the form name as they will be the same. Does the form class provide any attribute that will differentiate between two forms. for example - I opened two logForms in my application. When I store the positions of the logForms is there any way to set the name element of the reg entry so that I know it's a logForm but I also know that there are two of them. Hope this makes sense.

      Q Offline
      Q Offline
      Qwick Miller
      wrote on last edited by
      #2

      Is your main app a MDI? if so then you should think about either using a different class for each logForm or keep track of the enumerated child form by using: Form* mdiChild[] = this->get_MdiChildren(); for (int x =0; x < this->MdiChildren->Length;x++){ store the form using x } there maybe a better way other, but this is what I can only think of.

      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