Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/ttpcmn/ttcmn.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6684 by doda, Wed Apr 12 09:00:39 2017 UTC revision 6690 by doda, Mon Apr 24 11:49:49 2017 UTC
# Line 2384  int PASCAL CheckComPort(WORD ComPort) Line 2384  int PASCAL CheckComPort(WORD ComPort)
2384  // Notify Icon 関連  // Notify Icon 関連
2385  static NOTIFYICONDATA notify_icon = {0};  static NOTIFYICONDATA notify_icon = {0};
2386  static int NotifyIconShowCount = 0;  static int NotifyIconShowCount = 0;
2387    static HICON CustomIcon = NULL;
2388    
2389    void FAR PASCAL SetCustomNotifyIcon(HICON icon)
2390    {
2391            CustomIcon = icon;
2392    }
2393    
2394  void FAR PASCAL CreateNotifyIcon(PComVar cv)  void FAR PASCAL CreateNotifyIcon(PComVar cv)
2395  {  {
# Line 2393  void FAR PASCAL CreateNotifyIcon(PComVar Line 2399  void FAR PASCAL CreateNotifyIcon(PComVar
2399                  notify_icon.uID = 1;                  notify_icon.uID = 1;
2400                  notify_icon.uFlags = NIF_ICON | NIF_MESSAGE;                  notify_icon.uFlags = NIF_ICON | NIF_MESSAGE;
2401                  notify_icon.uCallbackMessage = WM_USER_NOTIFYICON;                  notify_icon.uCallbackMessage = WM_USER_NOTIFYICON;
2402                  notify_icon.hIcon = (HICON)SendMessage(cv->HWin, WM_GETICON, ICON_SMALL, 0);                  if (CustomIcon) {
2403                            notify_icon.hIcon = CustomIcon;
2404                    }
2405                    else {
2406                            notify_icon.hIcon = (HICON)SendMessage(cv->HWin, WM_GETICON, ICON_SMALL, 0);
2407                    }
2408                  notify_icon.szTip[0] = '\0';                  notify_icon.szTip[0] = '\0';
2409                  notify_icon.dwState = 0;                  notify_icon.dwState = 0;
2410                  notify_icon.dwStateMask = 0;                  notify_icon.dwStateMask = 0;

Legend:
Removed from v.6684  
changed lines
  Added in v.6690

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26