mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-27 16:59:41 +03:00
377ac5168b
git-svn-id: svn://kolibrios.org@5987 a494cfbc-eb01-0410-851d-a64ba20cac60
24 lines
1.1 KiB
C
24 lines
1.1 KiB
C
char ini_path[4096];
|
|
char config_section[] = "Config";
|
|
int encoding;
|
|
|
|
void LoadIniSettings()
|
|
{
|
|
strcpy(#ini_path, "/sys/settings/treader.ini");
|
|
ini_get_int stdcall (#ini_path, #config_section, "FontSize", 14); label.size.pt = EAX;
|
|
ini_get_int stdcall (#ini_path, #config_section, "Encoding", CH_CP866); encoding = EAX;
|
|
ini_get_int stdcall (#ini_path, #config_section, "WinX", 150); Form.left = EAX;
|
|
ini_get_int stdcall (#ini_path, #config_section, "WinY", 50); Form.top = EAX;
|
|
ini_get_int stdcall (#ini_path, #config_section, "WinW", 640); Form.width = EAX;
|
|
ini_get_int stdcall (#ini_path, #config_section, "WinH", 560); Form.height = EAX;
|
|
}
|
|
|
|
void SaveIniSettings()
|
|
{
|
|
ini_set_int stdcall (#ini_path, #config_section, "FontSize", label.size.pt);
|
|
ini_set_int stdcall (#ini_path, #config_section, "Encoding", encoding);
|
|
ini_set_int stdcall (#ini_path, #config_section, "WinX", Form.left);
|
|
ini_set_int stdcall (#ini_path, #config_section, "WinY", Form.top);
|
|
ini_set_int stdcall (#ini_path, #config_section, "WinW", Form.width);
|
|
ini_set_int stdcall (#ini_path, #config_section, "WinH", Form.height);
|
|
} |