1 |
|
---|
2 | /***********************************************************************
|
---|
3 |
|
---|
4 | $Id: mainwnd.h 1550 2010-11-03 02:50:42Z gyoung $
|
---|
5 |
|
---|
6 | <<description here>>
|
---|
7 |
|
---|
8 | Copyright (c) 1993-98 M. Kimes
|
---|
9 | Copyright (c) 2001, 2009 Steven H. Levine
|
---|
10 |
|
---|
11 | 05 Sep 08 JBS Ticket 187: Refactor FM3DLL.H
|
---|
12 | 04 Feb 09 SHL Convert args to const to match GetPString mods
|
---|
13 | 08 Mar 09 GKY Additional strings move to PCSZs & String Table
|
---|
14 | 21 Jun 09 GKY Added drive letter to bitmap buttons in drive bar; Eliminate static drive
|
---|
15 | letter windows; Use button ID to identify drive letter for processing.
|
---|
16 |
|
---|
17 | ***********************************************************************/
|
---|
18 |
|
---|
19 | #if !defined(MAINWND_H)
|
---|
20 |
|
---|
21 | #define MAINWND_H
|
---|
22 |
|
---|
23 | #include "colors.h" // typedef for RGB2
|
---|
24 |
|
---|
25 | #define DRIVE_BUTTON_WIDTH 28
|
---|
26 | #define DRIVE_BUTTON_HEIGHT 21
|
---|
27 |
|
---|
28 | void BubbleHelp(HWND hwnd, BOOL other, BOOL data, BOOL above, PCSZ help);
|
---|
29 | MRESULT EXPENTRY BubbleProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
|
---|
30 | VOID BuildDriveBarButtons(HWND hwndT);
|
---|
31 | MRESULT EXPENTRY ChildButtonProc(HWND hwnd, ULONG msg, MPARAM mp1,
|
---|
32 | MPARAM mp2);
|
---|
33 | BOOL CloseChildren(HWND hwndClient);
|
---|
34 | ULONG CountDirCnrs(HWND hwndParent);
|
---|
35 | MRESULT EXPENTRY DriveBackProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
|
---|
36 | MRESULT EXPENTRY DriveProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
|
---|
37 | VOID FillClient(HWND hwndClient, PSWP pswp, PRECTL prectl, BOOL avoidtree);
|
---|
38 | HWND FindDirCnrByName(CHAR * directory, BOOL restore);
|
---|
39 | VOID GetNextWindowPos(HWND hwndClient, PSWP pswp, ULONG * ulCntR,
|
---|
40 | ULONG * ulNumMinChildrenR);
|
---|
41 | MRESULT EXPENTRY LEDProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
|
---|
42 | MRESULT EXPENTRY MainWMCommand(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
|
---|
43 | MRESULT EXPENTRY MainWndProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
|
---|
44 | VOID MakeBubble(HWND hwnd, BOOL above, PCSZ help);
|
---|
45 | VOID MakeMainObjWin(VOID * args);
|
---|
46 | VOID ResizeDrives(HWND hwndT, long xwidth);
|
---|
47 | INT SaveDirCnrState(HWND hwndClient, PCSZ name);
|
---|
48 | MRESULT EXPENTRY StatusProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
|
---|
49 | VOID TileChildren(HWND hwndClient, BOOL absolute);
|
---|
50 | MRESULT EXPENTRY ToolBackProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
|
---|
51 | HWND TopWindow(HWND hwndParent, HWND exclude);
|
---|
52 | HWND TopWindowName(HWND hwndParent, HWND exclude, CHAR * ret);
|
---|
53 |
|
---|
54 | // Data declarations
|
---|
55 | extern ULONG AutoviewHeight;
|
---|
56 | extern ULONG DriveLines;
|
---|
57 | extern HMODULE FM3ModHandle;
|
---|
58 | extern PCSZ FM3Str;
|
---|
59 | extern HWND MainPopupMenu;
|
---|
60 | extern HWND MainObjectHwnd;
|
---|
61 | extern BOOL MenuInvisible;
|
---|
62 | extern PFNWP PFNWPStatic;
|
---|
63 | extern PFNWP PFNWPButton;
|
---|
64 | extern RGB2 RGBGREY;
|
---|
65 | extern BOOL fAmClosing;
|
---|
66 | extern BOOL fAutoTile;
|
---|
67 | extern BOOL fAutoView;
|
---|
68 | extern BOOL fComments;
|
---|
69 | extern BOOL fDrivebar;
|
---|
70 | extern BOOL fFreeTree;
|
---|
71 | extern BOOL fMoreButtons;
|
---|
72 | extern BOOL fNoFinger;
|
---|
73 | extern BOOL fNoSaveState;
|
---|
74 | extern BOOL fNoTileUpdate;
|
---|
75 | extern BOOL fRunning;
|
---|
76 | extern BOOL fSplitStatus;
|
---|
77 | extern BOOL fTextTools;
|
---|
78 | extern BOOL fToolTitles;
|
---|
79 | extern BOOL fToolbar;
|
---|
80 | extern BOOL fUserComboBox;
|
---|
81 | extern HBITMAP hbmLEDoff;
|
---|
82 | extern HBITMAP hbmLEDon;
|
---|
83 | extern HPOINTER hptrFinger;
|
---|
84 | extern HWND hwndAutoview;
|
---|
85 | extern HWND hwndBubble;
|
---|
86 | extern HWND hwndName;
|
---|
87 | extern HWND hwndStatelist;
|
---|
88 | extern HWND hwndToolback;
|
---|
89 | extern HWND hwndTree;
|
---|
90 | extern USHORT shiftstate;
|
---|
91 | extern PSZ pszFocusDir;
|
---|
92 |
|
---|
93 | #define STATE_NAME_MAX_BYTES 256
|
---|
94 |
|
---|
95 | #endif // MAINWND_H
|
---|