Windows: conditionally set tray icon state
[openafs.git] / src / WINNT / afssvrmgr / messages.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef MESSAGES_H
11 #define MESSAGES_H
12
13 // Timer IDs
14 //
15 #define ID_DISPATCH_TIMER 996
16 #define ID_ACTION_TIMER 997
17
18 // WM_NOTIFY_FROM_DISPATCH is posted when the AFSClass library notifies our
19 // handler that an event has taken place.
20 //
21 //    LPNOTIFYSTRUCT lpns = (LPNOTIFYSTRUCT)lParam;
22 //
23 // Use NotifyMe() to have notifications sent to your window when a
24 // particular object changes.
25 //
26 #define WM_NOTIFY_FROM_DISPATCH   (WM_USER + 0x100)
27
28 // WM_SERVER_CHANGED is sent to the child dialog of a server's window's tab
29 // control whenever that dialog's selected server changes.  It causes the
30 // window to be redisplayed.
31 //
32 //    LPIDENT lpiServerNew = (LPIDENT)lParam;  // NULL indicates no server
33 //
34 // Use Server_ForceRedraw() to post this message.
35 //
36 #define WM_SERVER_CHANGED         (WM_USER + 0x101)
37
38 // WM_REFRESH_UPDATE is sent to the "Refreshing..." dialog to update its
39 // displayed percent-complete.
40 //
41 //    DWORD dwPercentComplete = (DWORD)wParam;
42 //    LPIDENT lpiNowRefreshing = (LPIDENT)lParam;
43 //
44 #define WM_REFRESH_UPDATE         (WM_USER + 0x102)
45
46 // WM_OPEN_SERVERS is used by Display_Servers() to let g.hMain's thread know
47 // when it is finished updating the list of servers in a cell.  When received,
48 // all known servers are enumerated and secondary windows opened for them
49 // as appropriate.
50 //
51 #define WM_OPEN_SERVERS           (WM_USER + 0x103)
52
53 // WM_COLUMNS_CHANGED is sent by ShowColumnsDialog() if the user modified
54 // the list-of-columns given as the default selection.
55 //
56 #define WM_COLUMNS_CHANGED        (WM_USER + 0x104)
57
58 // WM_OPEN_SERVER is posted to g.hMain to cause it to call Server_Open().
59 //
60 //    LPIDENT lpiServerToOpen = (LPIDENT)lParam;
61 //
62 #define WM_OPEN_SERVER            (WM_USER + 0x105)
63
64 // WM_SHOW_CREATEREP_DIALOG is posted to g.hMain from any thread to cause
65 // the "Create Replica" dialog to be presented to the user.  In particular,
66 // this mechanism is used if the user right-drags an unreplicated fileset
67 // onto an aggregate and selects "replicate here": the user is first presented
68 // with the NOTREP dialog, and if the user is successful in getting the set
69 // replicated from there, the NOTREP_APPLY task posts this message to cause
70 // the "Create Replica" confirmation dialog to appear next.
71 //
72 //    LPIDENT lpiRW = (LPIDENT)wParam;
73 //    LPIDENT lpiTarget = (LPIDENT)lParam;  // may be NULL
74 //
75 #define WM_SHOW_CREATEREP_DIALOG  (WM_USER + 0x106)
76
77 // WM_SHOW_YOURSELF is posted to g.hMain to cause the main window to be
78 // displayed iff a cell has already been selected.
79 //
80 //    BOOL fForce = (BOOL)lp; // if !fForce, only show if g.lpiCell set
81 //
82 #define WM_SHOW_YOURSELF          (WM_USER + 0x107)
83
84 // WM_OPEN_ACTIONS is used by taskOPENCELL() to open the Operations In
85 // Progress window when appropriate.  The message is posted to g.hMain.
86 //
87 #define WM_OPEN_ACTIONS           (WM_USER + 0x108)
88
89 // WM_REFRESH_SETSECTION is sent to the "Refreshing..." dialog to tell
90 // the window what ID to pass to AfsClass_SkipRefresh() when the "Skip"
91 // button is clicked.
92 //
93 //    BOOL fStart = (BOOL)wParam;
94 //    int idSection = (int)lParam;
95 //
96 #define WM_REFRESH_SETSECTION     (WM_USER + 0x109)
97
98
99 #endif
100