kolibrios/programs/cmm/notes/ini.h
Kirill Lipatov (Leency) f3d40e9f11 Notes: save window position
PanelsCfg: fix Docky icon
Sysmon: fix tmpdisk size

git-svn-id: svn://kolibrios.org@7532 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-11-06 15:54:32 +00:00

20 lines
496 B
C

#include "../lib/obj/libini.h"
_ini ini = { "/sys/settings/app.ini", "Notes" };
void LoadIniSettings()
{
load_dll(libini, #lib_init,1);
Form.left = ini.GetInt("WinX", 150);
Form.top = ini.GetInt("WinY", 50);
//Form.width = ini.GetInt("WinW", 640);
//Form.height = ini.GetInt("WinH", 560);
}
void SaveIniSettings()
{
ini.SetInt("WinX", Form.left);
ini.SetInt("WinY", Form.top);
//ini.SetInt("WinW", Form.width);
//ini.SetInt("WinH", Form.height);
}