Changeset 137
- Timestamp:
- Sep 20, 2021, 6:48:26 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
helper.cpp (modified) (1 diff)
-
rstring.h (modified) (1 diff)
-
savebmp.cpp (modified) (1 diff)
-
settings/thth_settings.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/helper.cpp
r113 r137 63 63 64 64 CHAR fullExeName[CCHMAXPATH]; 65 CHAR *p; ;65 CHAR *p; 66 66 strcpy(fullExeName, ptr); 67 67 p = strrchr(fullExeName, '\\'); -
trunk/rstring.h
r10 r137 33 33 ResourceString (ULONG Id); 34 34 35 ResourceString (const ResourceString &rstr) 36 { 37 SavedId = rstr.SavedId; 38 BlockPointer = rstr.BlockPointer; 39 psz = rstr.psz; 40 } 35 ResourceString (const ResourceString &rstr) :SavedId (rstr.SavedId), 36 BlockPointer (rstr.BlockPointer), psz (rstr.psz) 37 {} 41 38 42 39 operator unsigned char * () { return ((unsigned char *) psz); } -
trunk/savebmp.cpp
r128 r137 574 574 575 575 HMQ hmq; 576 BOOL bUniCodeFont = FALSE;576 BOOL bUniCodeFont; 577 577 CHAR ucFont[FACESIZE]; 578 CHAR *lang = getenv("LANG"); 579 578 CHAR *lang; 579 580 lang = getenv("LANG"); 581 bUniCodeFont = FALSE; 580 582 if (!strnicmp(lang, "ru", 2)) { 581 583 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); -
trunk/settings/thth_settings.h
r50 r137 77 77 public: 78 78 ththSettingsEntryFlag (ID id, PSZ pszGroup, PSZ pszKey, BOOL f) 79 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_FLAG) { 80 fDefault = f; Reset (); } 79 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_FLAG), fDefault (f) 80 { 81 Reset (); 82 } 81 83 82 84 ththSettingsEntryFlag (ID id, PSZ pszGroup, PSZ pszKey, BOOL f, HINI hini) 83 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_FLAG) { 84 fDefault = f; Load (hini); } 85 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_FLAG), fDefault (f) 86 { 87 Load (hini); 88 } 85 89 86 90 VOID Set (BOOL f) { this->f = f; } 87 91 BOOL Query (VOID) { return f; } 88 VOID Reset (VOID) { f = fDefault; } 92 VOID Reset (VOID) { f = fDefault; } 89 93 90 94 VOID Load (HINI hini) … … 120 124 public: 121 125 ththSettingsEntryLong (ID id, PSZ pszGroup, PSZ pszKey, LONG l) 122 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_LONG) { 123 lDefault = l; Reset (); } 126 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_LONG), lDefault (l) 127 { 128 Reset (); 129 } 124 130 125 131 ththSettingsEntryLong (ID id, PSZ pszGroup, PSZ pszKey, LONG l, HINI hini) 126 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_LONG) { 127 lDefault = l; Load (hini); } 132 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_LONG), lDefault (l) 133 { 134 Load (hini); 135 } 128 136 129 137 VOID Set (LONG l) { this->l = l; } … … 163 171 public: 164 172 ththSettingsEntryString (ID id, PSZ pszGroup, PSZ pszKey, PSZ psz) 165 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_STRING) { 166 pszDefault = psz; Reset (); } 173 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_STRING), pszDefault(psz) 174 { 175 Reset (); 176 } 167 177 168 178 ththSettingsEntryString (ID id, PSZ pszGroup, PSZ pszKey, PSZ psz, HINI hini) 169 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_STRING) { 170 pszDefault = psz; Load (hini); } 179 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_STRING), pszDefault(psz) 180 { 181 Load (hini); 182 } 171 183 172 184 VOID Set (PSZ psz) … … 218 230 public: 219 231 ththSettingsEntryBinary (ID id, PSZ pszGroup, PSZ pszKey, PVOID pv, size_t size) 220 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_BINARY) { 221 pvDefault = pv; this->sizeDefault = size; Reset (); } 232 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_BINARY), pvDefault (pv) 233 { 234 this->sizeDefault = size; Reset (); 235 } 222 236 223 237 ththSettingsEntryBinary (ID id, PSZ pszGroup, PSZ pszKey, PVOID pv, size_t size, HINI hini) 224 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_BINARY) { 225 pvDefault = pv; this->sizeDefault = size; Load (hini); } 238 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_BINARY), pvDefault (pv) 239 { 240 this->sizeDefault = size; Load (hini); 241 } 226 242 227 243 VOID Set (PVOID pv, size_t size)
Note:
See TracChangeset
for help on using the changeset viewer.
