home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / optima / hpp.z / WOPTIMA.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-05  |  1.8 KB  |  68 lines

  1. //
  2. // woptima.hpp -- Private functions.
  3. //
  4.  
  5. #ifndef _WOPTIMA_HPP_INCLUDED
  6. #define _WOPTIMA_HPP_INCLUDED
  7.  
  8. #ifndef _WDEF_HPP_INCLUDED
  9. #include "wdef.hpp"
  10. #endif
  11.  
  12. struct __OptimaRTControl {
  13.     WUInt       size;
  14.     WLong       controlID;
  15.     WRect       r;
  16.     WStyle      style;
  17.     WStyle      ex_style;
  18.     char        text[];
  19. };
  20.  
  21. class WWindow;
  22. class WModule;
  23. class WFont;
  24. class WTransaction;
  25. class WQuery;
  26. class WDataSource;
  27.  
  28. #ifndef _WIN16
  29. #undef GetObject
  30. #if defined( _UNICODE )
  31.     #define GetObject GetObjectW
  32. #else
  33.     #define GetObject GetObjectA
  34. #endif
  35. #endif
  36.  
  37. class WCMCLASS WOptima {
  38.  
  39.     public:
  40.  
  41.         static WBool CreateControl( WWindow * parent,
  42.                                     const WResourceID & parentID,
  43.                                     WWindow * control, long controlID,
  44.                                     WFont * font = NULL,
  45.                                     WModuleHandle module=_ApplicationModule );
  46.  
  47.  
  48.         static void ConnectTransaction( WForm * parent,
  49.                                         WTransaction * trans,
  50.                                         const WChar * name, WBool connect );
  51.  
  52.         static void CreateQuery( WForm * parent, WQuery * query,
  53.                                  const WChar * trans_name,
  54.                                  const WChar * query_name );
  55.  
  56.         static void AutoOpenQuery( WForm * parent, WQuery * query );
  57.  
  58.         static WDataSource *GetDataSource( WForm * parent, const WChar * dsource_name );
  59.  
  60.         static WObject *GetObject( WForm *parent, const WChar * object_name );
  61.  
  62.         static void SetFormIcon( WForm * form, WBool mainForm,
  63.                                  const WResourceID & id,
  64.                                  WModuleHandle module=_ApplicationModule );
  65. };
  66.  
  67. #endif
  68.