home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / samples / sample2 / sample2.h < prev    next >
Text File  |  1996-10-27  |  2KB  |  64 lines

  1. /* sample2 has no special functionality, it only try to seem like a web-    */
  2. /* browser you know. sample2 shows you how to                               */
  3. /* - create standard applications                                           */
  4. /* - use menubars                                                           */
  5. /* - create window-controls of different types                              */
  6. /* - create toolbars and attach window- controls to them                    */
  7. /* - special gimmick: a graphic-button which displays an animation          */
  8.  
  9. #include "xheaders.h"
  10.  
  11. #include XApplication_i
  12. #include XFrameWindow_i
  13. #include XResourceLibrary_i
  14. #include XMenuBar_i
  15. #include XRect_i
  16. #include XHelpInstance_i
  17. #include XResource_i
  18. #include XToolBar_i
  19. #include XPushButton_i
  20. #include XComboBox_i
  21. #include XStaticText_i
  22. #include XStaticIcon_i
  23. #include XStaticBitmap_i
  24. #include XStaticFrame_i
  25. #include XControlEvent_i
  26. #include XGraphicButton_i
  27.  
  28. #include "resource.h"
  29.  
  30. class MyToolBar;
  31.  
  32. class MyAppWindow: public XFrameWindow
  33. {
  34.    friend class MyWebView;
  35.    public:
  36.       MyAppWindow( XApplication * app, XResource );
  37.       BOOL DoCommand( LONG);
  38.       void DoControl( XControlEvent * e);
  39. //      void Draw( void );
  40.       BOOL QueryForClose( void );
  41.    private:
  42.       XMenuBar * menu;
  43.       MyToolBar * toolBar1, *toolBar2;
  44.       XToolBar *toolBar3;
  45.       XPushButton * back, *forward, * home;
  46.       XComboBox * http;
  47.       XStaticText * text, *text2;
  48.       XGraphicButton * animation;
  49.       XStaticBitmap * key;
  50.       XStaticFrame * border;
  51.       XHelpInstance * help;
  52.       MyWebView * webView;
  53.       BOOL loading;
  54. };
  55.  
  56.  
  57. class MyApp: public XApplication
  58. {
  59.    public:
  60.       BOOL QueryForQuit( void );
  61.       MyAppWindow * window;
  62. };
  63.  
  64.