Changeset 1669
- Timestamp:
- Aug 13, 2012, 3:21:26 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/dll/notify.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/notify.c
r1654 r1669 21 21 16 Jul 09 SHL Stop leaking hptrIcon 22 22 17 Jan 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 23 08 Jan12 GKY Add support for changing PresParams in the notify status window23 12 Aug 12 GKY Add support for changing PresParams in the notify status window 24 24 25 25 ***********************************************************************/ … … 99 99 WinSetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_ZORDER | SWP_SHOW); 100 100 WinInvalidateRect(hwnd, NULL, FALSE); 101 RestorePresParams(hwnd, PCSZ_NOTIFYWND);102 101 return 0; 103 102 … … 112 111 PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID); 113 112 return 0; 114 115 case WM_PRESPARAMCHANGED:116 PresParamChanged(hwnd, PCSZ_NOTIFYWND, mp1, mp2);117 break;118 113 119 114 case WM_PAINT: … … 302 297 } 303 298 hwndNotify = hwnd; 299 { 300 USHORT ids[] = {NOTE_FRAME, NOTE_LISTBOX, 0}; 301 UINT x; 302 CHAR s[24]; 303 304 for (x = 0; ids[x]; x++) { 305 sprintf(s, "%s%i", PCSZ_NOTIFYWND,ids[x]); 306 RestorePresParams(WinWindowFromID(hwnd, ids[x]), s); 307 } 308 } 304 309 // Remember showing for restart 305 310 fThreadNotes = TRUE; … … 472 477 case WM_DESTROY: 473 478 if (hwndNotify == hwnd) { 479 USHORT ids[] = {NOTE_FRAME, NOTE_LISTBOX, 0}; 480 UINT x; 481 CHAR s[24]; 482 483 for (x = 0; ids[x]; x++) { 484 sprintf(s, "%s%i", PCSZ_NOTIFYWND,ids[x]); 485 SavePresParams(WinWindowFromID(hwnd, ids[x]), s); 486 } 474 487 fThreadNotes = FALSE; // Remember not open 475 488 PrfWriteProfileData(fmprof,
Note:
See TracChangeset
for help on using the changeset viewer.
