Changeset 1669


Ignore:
Timestamp:
Aug 13, 2012, 3:21:26 AM (13 years ago)
Author:
Gregg Young
Message:

Add support for changing PresParams in the notify status window. (Ticket 443)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/notify.c

    r1654 r1669  
    2121  16 Jul 09 SHL Stop leaking hptrIcon
    2222  17 Jan 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    23   08 Jan 12 GKY Add support for changing PresParams in the notify status window
     23  12 Aug 12 GKY Add support for changing PresParams in the notify status window
    2424
    2525***********************************************************************/
     
    9999    WinSetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_ZORDER | SWP_SHOW);
    100100    WinInvalidateRect(hwnd, NULL, FALSE);
    101     RestorePresParams(hwnd, PCSZ_NOTIFYWND);
    102101    return 0;
    103102
     
    112111    PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID);
    113112    return 0;
    114 
    115   case WM_PRESPARAMCHANGED:
    116     PresParamChanged(hwnd, PCSZ_NOTIFYWND, mp1, mp2);
    117     break;
    118113
    119114  case WM_PAINT:
     
    302297    }
    303298    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    }
    304309    // Remember showing for restart
    305310    fThreadNotes = TRUE;
     
    472477  case WM_DESTROY:
    473478    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      }
    474487      fThreadNotes = FALSE;             // Remember not open
    475488      PrfWriteProfileData(fmprof,
Note: See TracChangeset for help on using the changeset viewer.