home *** CD-ROM | disk | FTP | other *** search
- //
- // woptima.hpp -- Private functions.
- //
-
- #ifndef _WOPTIMA_HPP_INCLUDED
- #define _WOPTIMA_HPP_INCLUDED
-
- #ifndef _WDEF_HPP_INCLUDED
- #include "wdef.hpp"
- #endif
-
- struct __OptimaRTControl {
- WUInt size;
- WLong controlID;
- WRect r;
- WStyle style;
- WStyle ex_style;
- char text[];
- };
-
- class WWindow;
- class WModule;
- class WFont;
- class WTransaction;
- class WQuery;
- class WDataSource;
-
- #ifndef _WIN16
- #undef GetObject
- #if defined( _UNICODE )
- #define GetObject GetObjectW
- #else
- #define GetObject GetObjectA
- #endif
- #endif
-
- class WCMCLASS WOptima {
-
- public:
-
- static WBool CreateControl( WWindow * parent,
- const WResourceID & parentID,
- WWindow * control, long controlID,
- WFont * font = NULL,
- WModuleHandle module=_ApplicationModule );
-
-
- static void ConnectTransaction( WForm * parent,
- WTransaction * trans,
- const WChar * name, WBool connect );
-
- static void CreateQuery( WForm * parent, WQuery * query,
- const WChar * trans_name,
- const WChar * query_name );
-
- static void AutoOpenQuery( WForm * parent, WQuery * query );
-
- static WDataSource *GetDataSource( WForm * parent, const WChar * dsource_name );
-
- static WObject *GetObject( WForm *parent, const WChar * object_name );
-
- static void SetFormIcon( WForm * form, WBool mainForm,
- const WResourceID & id,
- WModuleHandle module=_ApplicationModule );
- };
-
- #endif
-