Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
NotificationMon.ƒ/Headers/NotificationMon.h
#pragma once |
typedef struct { |
Boolean hideWindowInBackground; |
Boolean notifyNewMessage; |
short backTime; |
short foreTime; |
Rect windowLoc; |
} prefRec; |
typedef struct neoNotification { |
Handle icon; |
Handle sound; |
Handle message; |
long psn[2]; |
struct neoNotification **next; |
} neoNotification, **nnH; |
typedef struct { |
WindowRecord nWin; |
short ncount; |
nnH nHead; |
nnH nTail; |
short nSelection; |
short lineHt; |
short longestLine; |
ControlHandle vScroll; |
prefRec prefs; |
} notificationDoc; |
#define notifyKind 16 |
extern notificationDoc *MainView; |
notificationDoc *NewNotificationDoc(short wID); |
nnH GetNotificationEntryByNumber(notificationDoc *nmd, short num); |
void UpdateNotifications(notificationDoc *nmd, short first); |
Boolean IsNotificationDoc(WindowPeek wp); |
#define RECT_WIDTH(r) (r.right - r.left) |
#define RECT_HEIGHT(r) (r.bottom - r.top) |
#define RIGHT_MARGIN 16 + 8 |
#define WINDOW(n) n->nWin.port |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14