Changeset 1455 for trunk/dll/notify.c


Ignore:
Timestamp:
Sep 15, 2009, 4:43:55 AM (16 years ago)
Author:
Steven Levine
Message:

Blink thread LEDs while worker threads are working
Drop expermental code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/notify.c

    r1444 r1455  
    2626#include <string.h>
    2727#include <ctype.h>
    28 #include <stddef.h>                     // _threadid
     28#include <stddef.h>                     // _threadid
    2929
    3030#define INCL_DOS
    3131#define INCL_WIN
    3232#define INCL_GPI
    33 #define INCL_LONGLONG                   // dircnrs.h
     33#define INCL_LONGLONG                   // dircnrs.h
    3434
    3535#include "fm3dll.h"
     
    4141#include "fm3dlg.h"
    4242#include "fm3str.h"
    43 #include "errutil.h"                    // Dos_Error...
    44 #include "strutil.h"                    // GetPString
     43#include "errutil.h"                    // Dos_Error...
     44#include "strutil.h"                    // GetPString
    4545#include "notify.h"
    4646#include "presparm.h"                   // SetPresParams
     
    5555// Data definitions
    5656static PSZ pszSrcFile = __FILE__;
    57 static volatile HWND hwndNotify;        // 16 Apr 08 SHL
     57static volatile HWND hwndNotify;        // 16 Apr 08 SHL
    5858static volatile PCSZ pszCachedNote;     // 16 Jul 09 SHL
    5959
     
    170170{
    171171  char *p;
    172   HWND hwnd = (HWND) 0, hwndP;
     172  HWND hwnd = (HWND)0, hwndP;
    173173  LONG x, y, cx, cy;
    174174  SWP swp, swpS, swpS2;
     
    217217    if (!hwnd)
    218218      Win_Error(hwndP, hwndP, pszSrcFile, __LINE__,
    219                 PCSZ_WINCREATEWINDOW);
     219                PCSZ_WINCREATEWINDOW);
    220220
    221221    if (p != str)
     
    306306    // Remember showing for restart
    307307    fThreadNotes = TRUE;
    308       PrfWriteProfileData(fmprof,
    309                           FM3Str, "ThreadNotes", &fThreadNotes, sizeof(BOOL));
    310     fThreadNotes = FALSE;               // Optimize
     308    PrfWriteProfileData(fmprof,
     309                        FM3Str,
     310                        "ThreadNotes",
     311                        &fThreadNotes,
     312                        sizeof(BOOL));
     313    fThreadNotes = FALSE;               // Optimize shutdown
    311314
    312315    // 16 Jul 09 SHL Added
     
    445448        ndx--;
    446449        len = (SHORT)WinSendDlgItemMsg(hwnd, NOTE_LISTBOX,
    447                                        LM_QUERYITEMTEXTLENGTH, 
     450                                       LM_QUERYITEMTEXTLENGTH,
    448451                                       MPFROMSHORT(ndx), MPVOID);
    449452        if (len != LIT_ERROR) {
     
    471474  case WM_DESTROY:
    472475    if (hwndNotify == hwnd) {
    473       // Remember not open
    474       fThreadNotes = FALSE;
     476      fThreadNotes = FALSE;             // Remember not open
    475477      PrfWriteProfileData(fmprof,
    476478                          FM3Str, "ThreadNotes", &fThreadNotes, sizeof(BOOL));
    477       hwndNotify = (HWND) 0;
     479      hwndNotify = (HWND)0;
    478480    }
    479481    if (hptrIcon) {
     
    481483      hptrIcon = (HPOINTER)0;           // 16 Jul 09 SHL
    482484    }
    483     if (!PostMsg((HWND) 0, WM_QUIT, MPVOID, MPVOID))
    484       WinSendMsg((HWND) 0, WM_QUIT, MPVOID, MPVOID);
     485    if (!PostMsg((HWND)0, WM_QUIT, MPVOID, MPVOID))
     486      WinSendMsg((HWND)0, WM_QUIT, MPVOID, MPVOID);
    485487    break;
    486488  }
     
    492494 */
    493495
    494 static VOID NoteThread(VOID * args)
     496static VOID NoteThread(VOID *args)
    495497{
    496498  HAB hab = WinInitialize(0);
Note: See TracChangeset for help on using the changeset viewer.