home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / fsrc1241.zip / secwin.c < prev    next >
C/C++ Source or Header  |  1999-02-14  |  3KB  |  78 lines

  1. /*---------------------------------------------------------------------------+
  2.  | Titel: SECWIN.C                                                           |
  3.  +-----------------------------------------+---------------------------------+
  4.  | Erstellt von: Michael Hohner            | Am: 05.01.1996                  |
  5.  +-----------------------------------------+---------------------------------+
  6.  | System: OS/2 2.x/3.x PM                                                   |
  7.  +---------------------------------------------------------------------------+
  8.  | Beschreibung:                                                             |
  9.  |                                                                           |
  10.  |     Registrieren der Fensterklassen                                       |
  11.  |                                                                           |
  12.  |                                                                           |
  13.  +---------------------------------------------------------------------------+
  14.  | Bemerkungen:                                                              |
  15.  +---------------------------------------------------------------------------*/
  16.  
  17. /*----------------------------- Header-Dateien ------------------------------*/
  18. #pragma strings(readonly)
  19.  
  20. #define INCL_PM
  21. #include <os2.h>
  22. #include "main.h"
  23. #include "msgheader.h"
  24.  
  25. #include "controls\msgviewer.h"
  26. #include "controls\statline.h"
  27. #include "controls\clrsel.h"
  28. #include "controls\mlist.h"
  29. #include "controls\toolbar.h"
  30. #include "controls\fontdisp.h"
  31. #include "controls\editwin.h"
  32. #include "controls\listbox.h"
  33. #include "controls\attrselect.h"
  34.  
  35. /*--------------------------------- Defines ---------------------------------*/
  36.  
  37. /*---------------------------------- Typen ----------------------------------*/
  38.  
  39. /*---------------------------- Globale Variablen ----------------------------*/
  40.  
  41. /*--------------------------- Funktionsprototypen ---------------------------*/
  42.  
  43. /*----------------------- interne Funktionsprototypen -----------------------*/
  44.  
  45. /*-----------------------------------------------------------------------------
  46.  | Funktionsname: RegisterSecondaryWindows
  47.  |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  48.  | Beschreibung: Registriert alle Fensterklassen
  49.  |
  50.  |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  51.  | Parameter: anchor: Anchor-Block
  52.  |
  53.  |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  54.  | Rückgabewerte: TRUE   Erfolg
  55.  |                FALSE  Fehler
  56.  |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  57.  | Sonstiges: -
  58.  |
  59.  +---------------------------------------------------------------------------*/
  60.  
  61. BOOL RegisterSecondaryWindows(HAB anchor)
  62. {
  63.    if (RegisterEditWin(anchor) &&
  64.        RegisterMsgViewer(anchor) &&
  65.        RegisterStatusLineClass(anchor) &&
  66.        RegisterColorSelect(anchor) &&
  67.        RegisterMessageList(anchor) &&
  68.        RegisterToolbar(anchor) &&
  69.        RegisterFontDisplay(anchor) &&
  70.        RegisterAttribSelect(anchor) &&
  71.        RegisterListBox(anchor))
  72.       return TRUE;
  73.    else
  74.       return FALSE;
  75. }
  76.  
  77. /*-------------------------------- Modulende --------------------------------*/
  78.