Code Viewer

./WindowHandlers/ContactNotification_handler.js File Size: 2.77 KB

  1. /*
  2. *
  3. *      ContactNotification_Subclass.xml
  4. *
  5. */
  6.  
  7.  
  8. /*
  9.         Name:   OnContactNotification_SubclassEvent_MessageNotification
  10.         Purpose:        Function is called everytime a defined message is sent to the window
  11.         Parameters:     pPlusWnd - The Plus! Window Object the message was received on
  12.                                 nMessage - The message that was received by the window
  13.                                 wParam - 16 bit parameter
  14.                                 lParam - 32 bit parameter
  15.         Return: None
  16. */
  17. function OnContactNotification_SubclassEvent_MessageNotification(pPlusWnd, nMessage, wParam, lParam) {
  18.         _debug.getfuncname(arguments);
  19.         if (typeof objWindows['ContactSelector']!== TYPE_UNDEFINED) {
  20.                 switch (nMessage) {
  21.                         case WM_CONTACTSIGNIN:
  22.                                 for (var i=0; i < objWindows['ContactSelector'].LstView_GetCount('LvContacts'); i++) {
  23.                                         if (objWindows['ContactSelector'].LstView_GetItemText('LvContacts', i, 1) === lParam) {
  24.                                                 objWindows['ContactSelector'].LstView_RemoveItem('LvContacts', i);
  25.                                         }
  26.                                 }
  27.                                 break;
  28.                         case WM_CONTACTSIGNOUT:
  29.                                 for (var i=0; i < objWindows['ContactSelector'].LstView_GetCount('LvContacts'); i++) {
  30.                                         if (objWindows['ContactSelector'].LstView_GetItemText('LvContacts', i, 1) === lParam) {
  31.                                                 objWindows['ContactSelector'].LstView_RemoveItem('LvContacts', i);
  32.                                         }
  33.                                 }
  34.                                 break;
  35.                         case WM_CHATWNDOPEN:
  36.                                
  37.                                 break;
  38.                         case WM_CHATWNDCLOSED:
  39.                                
  40.                                 break;
  41.                         default:
  42.                                 return -1;
  43.                 }
  44.         }
  45.         return 1;
  46. }

Version

  • 5.0.0070_20100325_publicbeta1

Developers

Project Details

  • Folders8
  • Files122
  • Total Lines11,867
  • Repository Version70

User Count

  • 162