home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 December / PCWKCD1296.iso / vjplusb / activex / inetsdk / samples / wininet / asyncftp / capp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-01  |  937 b   |  46 lines

  1. //**********************************************************************
  2. // File name: app.h
  3. //
  4. //      Definition of ObjUser
  5. //
  6. // Copyright (c) 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8.  
  9. #ifndef _CAPP_H_ 
  10. #define _CAPP_H_
  11.  
  12.  
  13. class CApp 
  14. {
  15.     friend CDlg;
  16.     friend CDlgOpt;
  17. protected:
  18.     HINSTANCE            m_hInst;
  19.     HINSTANCE            m_hInstPrev;
  20.     UINT                m_nCmdShow;
  21.  
  22.     HWND                m_hWnd;
  23.     CDlg               *m_pCDlg;
  24.     CDlgOpt            *m_pCDlgOpt;
  25.                                   
  26. public:
  27.  
  28.     // Initialization methods
  29.     CApp(HINSTANCE,HINSTANCE,UINT);           // Constructor
  30.     virtual ~CApp();          // Destructor
  31.     BOOL InitInstance();
  32.     HWND GetHWND()
  33.     {
  34.         return m_hWnd;
  35.     }
  36.     friend LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM );
  37.  
  38. };
  39.  
  40.  
  41. #endif
  42.  
  43.  
  44. int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow);
  45.  
  46.