home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / fsrc1241.zip / mainwindow.h < prev    next >
Text File  |  1997-09-24  |  3KB  |  74 lines

  1. /* MAINWINDOW.H */
  2.  
  3. /* Instanzdaten f. Mainwindow */
  4.  
  5. typedef struct {
  6.          ULONG  idMessageField;   /* Field-IDs v. Statuszeile */
  7.          ULONG  idCursorField;
  8.          ULONG  idKeybField;
  9.          ULONG  idAddressField;
  10.          ULONG  idNumberField;
  11.          ULONG  idCheckField;
  12.          ULONG  idProgressField;
  13.          LONG   lLastProgress;
  14.          BOOL   bInsert;          /* Insert-Mode */
  15.          ULONG  ulCurrentID;      /* Message-ID der aktuellen Message */
  16.          HWND   hwndPopup;        /* Popup-Menue */
  17.          USHORT usPopupControl;   /* Control-ID f. Popup-Menue */
  18.          HWND   hwndRexxMenu;     /* Window-Handle des Rexx-Menues */
  19.          ULONG  ulCurrentHook;    /* momentan bearbeiteter Hook */
  20.          AREADEFLIST *pArea;
  21.          HWND   hwndToolbarPopup;
  22.          ULONG  ulSourceWindow;
  23.       } WINDOWDATA, *PWINDOWDATA;
  24.  
  25. #define CURRENTHOOK_NONE     0
  26. #define CURRENTHOOK_EXIT     1
  27. #define CURRENTHOOK_PRESAVE  2
  28.  
  29. #define SOURCEWIN_NONE       0
  30. #define SOURCEWIN_AREA       1
  31. #define SOURCEWIN_MSGLIST    2
  32. #define SOURCEWIN_THREAD     3
  33. #define SOURCEWIN_BOOKMARKS  4
  34.  
  35. /* f. Frame-Subclass */
  36. #define FID_TOOLBAR                0x8020
  37. #define FID_STATUSLINE             0x8021
  38.  
  39. /*--------------------------- Funktionsprototypen ---------------------------*/
  40. void UpdateDisplay(BOOL isNewArea, BOOL withText);
  41. void DisplayAttrib(ULONG attr);
  42. void QueryLayout(HWND fenster);
  43. void InitMenus(USHORT usMenuID, HWND hwndMenuWnd);
  44. void StatusChanged(HWND hwndClient, int newstatus);
  45. void InitMainWindow(HWND fenster);
  46. void DisplayStatusText(SHORT ctrlID);
  47. void DisplayMessage(BOOL withText);
  48. void InsertMacro(HWND hwndEdit, USHORT MacroID);
  49. void ShowFleetWindow(USHORT usMenuID);
  50. void DisplayMenuHelp(HWND hwndClient, SHORT ctrlID);
  51. void DisplayMsgText(HWND hwndClient, FTNMESSAGE *msginfo);
  52. void SwitchEditor(HWND hwndClient, char *pchDestArea, BOOL bEdit);
  53. void UpdateMsgNum(HWND hwndClient, PWINDOWDATA pWindowData);
  54. void UpdateButtons(AREADEFLIST *zeiger);
  55. void UpdateCheckField(AREADEFLIST *zeiger, PWINDOWDATA pWindowData);
  56. void OpenEditPopup(HWND hwndClient, PWINDOWDATA pWindowData, BOOL bKeyBoard);
  57. void QueryOpenWindows(POPENWIN pOpenWindows);
  58. void RestoreOpenWindows(POPENWIN pOpenWindows);
  59. void FLTLAY_ResizeMainWindow(HWND hwndClient, SHORT cx, SHORT cy);
  60. USHORT FLTLAY_QueryNextFocus(USHORT usCurrent, BOOL bSkipAddresses);
  61. USHORT FLTLAY_QueryPrevFocus(USHORT usCurrent, BOOL bSkipAddresses);
  62. MRESULT EXPENTRY ToolbarFrameProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  63. int CreateStatusLine(HWND hwndFrame);
  64. int CreateToolbar(HWND hwndFrame);
  65. int OpenToolbarContext(HWND hwndClient, PWINDOWDATA pWindowData, ULONG ulButtonID);
  66. int SwitchToolbarPos(HWND hwndClient, ULONG ulCommand);
  67. int SwitchToolbarSize(HWND hwndClient);
  68. void SetTranslateMode(BOOL bTranslate);
  69. void BackToWindow(PWINDOWDATA pWindowData);
  70.  
  71. int OpenProgressBar(PWINDOWDATA pWindowData, PCHAR pchAreaTag);
  72. int CloseProgressBar(PWINDOWDATA pWindowData);
  73. int ProgressBarProgress(PWINDOWDATA pWindowData, LONG lPercent);
  74.