source: trunk/dll/misc.h@ 1394

Last change on this file since 1394 was 1394, checked in by Steven Levine, 17 years ago

Ticket 340: Convert GetPString to use STRINGTABLE.

Drop fm3dll.str and mkstr.exe from makefiles and wpi builders

Convert many functions to expect PCSZ arguments.
Correct walk, compare and dirsizes dialog setups to ignore saved dialog size
Drop copyright.c logic from makefile

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1
2/***********************************************************************
3
4 $Id: misc.h 1394 2009-02-05 04:17:25Z stevenhl $
5
6 Misc utility functions
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2008, 2009 Steven H. Levine
10
11 17 Jul 08 SHL Baseline
12
13***********************************************************************/
14
15#if !defined(MISC_H)
16#define MISC_H
17
18#if !defined(OS2_INCLUDED)
19#include <os2.h>
20#endif
21
22#include "dircnrs.h" // typedef for DETAILS_SETTINGS
23
24#ifdef FORTIFY
25INT GetTidForThread(VOID);
26INT GetTidForWindow(HWND hwnd);
27#endif
28
29SHORT AddToListboxBottom(HWND hwnd, PCSZ str);
30BOOL AdjustCnrColRO(HWND hwndCnr, PCSZ title, BOOL readonly, BOOL toggle);
31BOOL AdjustCnrColVis(HWND hwndCnr, PCSZ title, BOOL visible, BOOL toggle);
32VOID AdjustCnrColsForFSType(HWND hwndCnr, PCSZ directory, DETAILS_SETTINGS * pds);
33VOID AdjustCnrColsForPref(HWND hwndCnr, PCSZ directory, DETAILS_SETTINGS * pds,
34 BOOL compare);
35VOID AdjustDetailsSwitches(HWND hwnd, HWND hwndMenu, USHORT cmd,
36 PCSZ directory, PCSZ keyroot, DETAILS_SETTINGS * pds,
37 BOOL compare);
38void BoxWindow(HWND hwnd, HPS hps, LONG color);
39void Broadcast(HAB hab, HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
40INT CheckDriveSpaceAvail(PCSZ pTargetPath, ULONGLONG ullSpaceNeeded,
41 ULONGLONG ullFreeSpaceWhenComplete);
42HWND CheckMenu(HWND hwnd, HWND * hwndMenu, USHORT id);
43MRESULT CnrDirectEdit(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
44PMINIRECORDCORE CurrentRecord(HWND hwndCnr);
45void DrawTargetEmphasis(HWND hwnd, BOOL on);
46void EmphasizeButton(HWND hwnd, BOOL on);
47INT ExecFile(HWND hwnd, PCSZ filename);
48HWND FindDirCnr(HWND hwndParent);
49VOID FixSwitchList(HWND hwnd, PCSZ text);
50char *GetCmdSpec(BOOL dos);
51VOID HeapThread(VOID * dummy);
52BOOL IsFm2Window(HWND hwnd, BOOL chkTid);
53VOID LoadDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS * pds);
54VOID LoadLibPath(PSZ str, LONG len);
55VOID OpenEdit(HWND hwnd);
56VOID PaintRecessedWindow(HWND hwnd, HPS hps, BOOL outtie, BOOL dbl);
57void PaintSTextWindow(HWND hwnd, HPS hps);
58VOID PortholeInit(HWND hwndNew, MPARAM mp1, MPARAM mp2);
59BOOL PostMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
60VOID QuickPopup(HWND hwnd, DIRCNRDATA * dcd, HWND hwndMenu, USHORT id);
61void SayFilter(HWND hwnd, MASK * mask, BOOL archive);
62void SaySort(HWND hwnd, INT sortflags, BOOL archive);
63void SayView(HWND hwnd, ULONG flWindowAttr);
64BOOL SetCnrCols(HWND hwndCnr, BOOL compare);
65VOID SetConditionalCascade(HWND hwndMenu, USHORT id, USHORT def);
66VOID SetDetailsSwitches(HWND hwnd, DETAILS_SETTINGS * pds);
67BOOL SetMenuCheck(HWND hwndMenu, USHORT id, BOOL * bool, BOOL toggle,
68 PCSZ savename);
69VOID SetShiftState(VOID);
70VOID SetSortChecks(HWND hwndMenu, INT sortflags);
71VOID SetSysMenu(HWND hwndSysMenu);
72void SetViewMenu(HWND hwndMenu, ULONG flWindowAttr);
73VOID SetupCommandMenu(HWND hwndMenu, HWND hwndCnr);
74void SetupWinList(HWND hwndMenu, HWND hwndTop, HWND hwndFrame);
75BOOL SwitchCommand(HWND hwndMenu, USHORT cmd);
76BOOL ViewHelp(PCSZ filename);
77VOID disable_menuitem(HWND hwndMenu, USHORT id, BOOL enable);
78
79// Data declarations
80extern HWND CollectorDirMenu;
81extern HWND CollectorFileMenu;
82extern HWND DirMenu;
83extern HWND FileMenu;
84extern HWND TreeMenu;
85extern BOOL fDefaultDeletePerm;
86extern BOOL fWorkPlace;
87extern ULONG numswitches;
88extern HSWITCH switches[499];
89
90#endif // MISC_H
Note: See TracBrowser for help on using the repository browser.