Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialog Position

Status
Not open for further replies.

kurtschenk

Technical User
Joined
Nov 27, 2003
Messages
2
Location
US
Is there an easy way to store the position of a dialog at closing and store the information, so that the next time the dialog is called it can be placed at the same position?

Thanks for any suggestions

Kurt
 
1. in registry
2. in some file
3. in a database
4. ....
....

Ion Filipski
1c.bmp
 
If you open/close the dialog many times during the application running then I recommend to store the position in the .INI file like as follow:
[DIALOGS]
dlgIDD=
dlgX=
dlgY=
Use GetPrivateProfileString() / WritePrivateProfileString() to read/update the above entries.

-obislavu-
 
If its only during application running that you want it to be stored, then why uses files for storing the position? Why not just use some variables?

Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top