Changeset 1654 for trunk/dll


Ignore:
Timestamp:
Jan 8, 2012, 7:16:08 PM (14 years ago)
Author:
Gregg Young
Message:

Add support for changing PresParams in the notify status window.

Location:
trunk/dll
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1642 r1654  
    108108                or invalid
    109109  22 Oct 11 GKY Thread notes dialog now reopens on startup if it was open on shutdown.
     110  08 Jan 12 GKY Add support for changing PresParams in the notify status window
    110111
    111112***********************************************************************/
     
    271272PCSZ PCSZ_DIRCMP      = "DirCmp";
    272273PCSZ PCSZ_DIRSIZES    = "DirSizes";
     274PCSZ PCSZ_NOTIFYWND   = "NotifyWnd";
    273275PCSZ PCSZ_TOOLBAR     = "ToolBar";
    274276PCSZ PCSZ_TREECNR     = "TreeCnr";
  • trunk/dll/init.h

    r1607 r1654  
    2828                entries in the tree container, fix related semaphore performance using
    2929                combination of event and mutex semaphores
     30  08 Jan 12 GKY Add support for changing PresParams in the notify status window
    3031
    3132***********************************************************************/
     
    6364extern PCSZ PCSZ_DIRCMP;
    6465extern PCSZ PCSZ_DIRSIZES;
     66extern PCSZ PCSZ_NOTIFYWND;
    6567extern PCSZ PCSZ_TOOLBAR;
    6668extern PCSZ PCSZ_TREECNR;
  • trunk/dll/notify.c

    r1521 r1654  
    2020  13 Jul 09 SHL Sync with renames
    2121  16 Jul 09 SHL Stop leaking hptrIcon
    22   17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     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 Jan 12 GKY Add support for changing PresParams in the notify status window
    2324
    2425***********************************************************************/
     
    8485      }
    8586      else {
    86 
    87         RGB2 rgb2F, rgb2;
    88 
    89         memset(&rgb2F, 0, sizeof(RGB2));
    90         rgb2F.bRed = (BYTE)65;
    91         rgb2.bRed = rgb2.bGreen = rgb2.bBlue = (BYTE)255;
    92         rgb2.fcOptions = 0;
    93         //fixme to allow user to change presparams 1-10-09 GKY
    94         SetPresParams(hwnd, &rgb2, &rgb2F, &rgb2, FNT_8HELVETICA);
    9587        if (hwndMain) {
    9688          if (hwndStatus)
     
    10799    WinSetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_ZORDER | SWP_SHOW);
    108100    WinInvalidateRect(hwnd, NULL, FALSE);
     101    RestorePresParams(hwnd, PCSZ_NOTIFYWND);
    109102    return 0;
    110103
     
    119112    PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID);
    120113    return 0;
     114
     115  case WM_PRESPARAMCHANGED:
     116    PresParamChanged(hwnd, PCSZ_NOTIFYWND, mp1, mp2);
     117    break;
    121118
    122119  case WM_PAINT:
Note: See TracChangeset for help on using the changeset viewer.