home *** CD-ROM | disk | FTP | other *** search
/ Desktop Works 1995 - 1996 / desktopworks1995-1996.iso / animator / externs.c < prev    next >
C/C++ Source or Header  |  1996-01-01  |  4KB  |  117 lines

  1. /*/////////////////////////////////////////////////////////////////////////
  2. //  External variable declarations to make them global and ally
  3. //  resolved.
  4. //
  5. /////////////////////////////////////////////////////////////////////////*/
  6.  
  7. #include "animator.h"
  8.  
  9. HINSTANCE        _hInst;
  10. HWND             _hwndFrame, _hwndClient, _hwndStatus;
  11. HMENU            _hmenuMain, _hmenuMainWindow, _hmenuChild, 
  12.                         _hmenuChildWindow;
  13. LONG             _lPageFlags;
  14. LONG             _lPageFlags;
  15. char             _szAppName[32];
  16. char             _szChildClass[32];
  17. char             _szTitleBar[32];
  18. char             _szStatBarClass[32];
  19. char             _szUntitled[32];
  20. char             _szExtension[5];
  21. char             _szTimeInt[32];
  22. char             _szInfo[32];
  23. char             _szNumIcons[32];
  24. char             _szLinkFile[32];
  25. char             _szIconSection[32];
  26. char             _szIcon[32];
  27. char             _szAutoAnimateKey[32];
  28.  
  29. FARPROC          _lpfnTimer;
  30. FARPROC          _lpfnNotify;
  31. FARPROC          _lpfnAbout;
  32. FARPROC          _lpfnBroadcast;
  33. FARPROC          _lpfnSettings;
  34. HWND             _hTargethWnd;
  35. int              _nTimerInterval;
  36. int              _nStatBarDY;
  37. ANIMSTRUCT       _animStruct[MAXANIMATIONS];
  38. HPEN             _hpnGray;
  39. HPEN             _hpnBlack;
  40. HPEN             _hpnWhite;
  41.  
  42.  
  43. // Common Dialogs stuff us_d in ShowOpenDialog() 
  44.  
  45. LPSTR           _lpszIconFilter[3] = {
  46.                         ".ICO files (*.ico)",
  47.                         "*.ico",
  48.                         ""};
  49. LPSTR           _lpszScriptFilter[5] = {
  50.                         ".ANM files (*.ANM)",
  51.                         "*.anm",
  52.                         "All files (*.*)",
  53.                         "*.*",
  54.                         ""};
  55. LPSTR           _lpszEXEFilter[5] = {
  56.                         ".EXE files (*.EXE)",
  57.                         "*.exe",
  58.                         ".COM files (*.COM)",
  59.                         "*.com",
  60.                         ""};
  61. #ifdef __cplusplus
  62. "C" {
  63. #endif 
  64.  
  65. // MAIN.C 
  66.  VOID WINAPI              CenterWindow (HWND);      
  67.  BOOL WINAPI              RestorePosition (HWND,short);
  68.  VOID WINAPI              RecordPosition (HWND);
  69.  short WINAPI             IntFromString (LPSTR FAR *);
  70.  HWND WINAPI              GetWindowListbox (VOID);
  71.  short WINAPI             GetWindowNumber(VOID);
  72.  BOOL WINAPI              DeleteCurSel (HWND);
  73.  VOID WINAPI              DeletePreviousHandles (HWND);
  74.  VOID WINAPI              SetupIconHandles (HWND);
  75.  BOOL WINAPI              CheckForDoubles (HWND);
  76.  VOID WINAPI              MESSAGE (WORD);
  77.  UINT WINAPI              GetTextWidth (HDC,LPSTR);
  78.  UINT WINAPI              GetTextHeight (HDC,LPSTR);
  79.  UINT WINAPI              GetANSITextHeight (VOID);
  80.  HWND WINAPI              GetAppTaskWindow (char *);
  81.  BOOL _export CALLBACK    NotifyProc (WORD,DWORD);
  82.  
  83. // FRAME.C 
  84.  LRESULT _export CALLBACK FrameProc (WNDPROC_PARAMS);
  85.  BOOL _export CALLBACK    BroadcastProc (HWND,LONG);
  86.  VOID WINAPI              RefreshAnimations (VOID);
  87.  
  88. // CHILD.C 
  89.  LRESULT _export CALLBACK ChildProc (WNDPROC_PARAMS);
  90.  
  91. // STATBAR.C 
  92.  LRESULT _export CALLBACK StatusBarProc (WNDPROC_PARAMS);
  93.  
  94. // ABOUT.C
  95.  BOOL _export CALLBACK    About (DLGPROC_PARAMS);
  96.  
  97. // TIMER.C
  98.  VOID _export CALLBACK    TimerCallback (HWND,UINT,UINT,DWORD);
  99.  VOID WINAPI              InvalidateAll (HWND, HICON);
  100.  
  101. // SETTINGS.C
  102.  BOOL _export CALLBACK    SettingsDlg (DLGPROC_PARAMS);
  103.  
  104. // SHOWTASK.C 
  105.  HANDLE _export CALLBACK  ShowTaskDlg(DLGPROC_PARAMS);
  106.  BOOL _export CALLBACK    EnumCallback (HWND, LONG);
  107.  
  108. // FILEIO.C 
  109.  BOOL WINAPI              ShowCommonDialog (HWND, LPSTR *, LPSTR, LPSTR, LPSTR, BOOL);VOID WINAPI              SaveIconsToFile (HWND, WORD);
  110.  BOOL WINAPI              OpenIconsInFile (char *);
  111.  BOOL WINAPI              LinkToExecutable (LPSTR);
  112.  BOOL WINAPI              GetPathIfNoPath (LPSTR);
  113.  
  114. #ifdef __cplusplus
  115. }
  116. #endif
  117.