home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / componen / interact / demo / data.2 / samples / ansic / INTERACT / ABOUTIDO.C next >
Encoding:
C/C++ Source or Header  |  1996-04-03  |  2.9 KB  |  113 lines

  1. //lRegen_FileHeading
  2. //lRegen_FileHeading
  3.  
  4.      /********************************************************************
  5.       *
  6.       *   Source File:  Aboutido.c                                        
  7.       *   Author:                                                         
  8.       *   Module:       Source for idoiface application                   
  9.       *   Program Desc:                                                                                 
  10.       *   Date:         Wed Apr 03 07:29:29 1996                          
  11.       *   Language:     ANSI C
  12.       *
  13.       ********************************************************************/
  14.  
  15. #include ".\idoiface.h"
  16.  
  17.  
  18. //lRegen_Variables
  19. //lRegen_Variables
  20.  
  21. VIEW     hViewAboutidoiface;
  22. HWND     hWndAboutidoiface;
  23. LRESULT CALLBACK EXPORT fnAboutidoifaceWndProc(HWND, UINT, WPARAM, LPARAM);
  24.  
  25. int fnAboutidoiface(HWND hParentWnd, UINT iData, void FAR *lpData)
  26. {
  27.    int   ReturnCode;
  28.  
  29.    //lRegen_BeginFunction
  30.    //lRegen_BeginFunction
  31.  
  32.    //lRegen_InitDlg
  33.    //lRegen_InitDlg
  34.  
  35.    if(NULL == (hViewAboutidoiface = vwCreateView(hInstance,
  36.                    MAKEINTRESOURCE(Aboutidoiface),
  37.                    hParentWnd,
  38.                    (VIEWPROC)fnAboutidoifaceWndProc,
  39.                    NULL)))
  40.    {
  41.          //lRegen_Create
  42.          //lRegen_Create
  43.         return FALSE;
  44.    }
  45.    //lRegen_InitView
  46.    //lRegen_InitView
  47.    if((ReturnCode = vwShowModalView(hViewAboutidoiface)) == -1)
  48.    {
  49.         MessageBox(NULL, "Unable to display view", "System Error",
  50.                    MB_SYSTEMMODAL | MB_ICONHAND | MB_OK);
  51.         return FALSE;
  52.    }
  53.  
  54.    //lRegen_TermView
  55.    //lRegen_TermView
  56.    return(ReturnCode);
  57. }
  58.  
  59. LRESULT CALLBACK EXPORT fnAboutidoifaceWndProc(HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam)
  60. {
  61. GETVIEW;
  62.    WORD CtlId;
  63.    WORD Notify;
  64.    HWND CtlWnd;
  65.  
  66.    //lRegen_WindowProcVariables
  67.    //lRegen_WindowProcVariables
  68.  
  69.    switch(uMessage)
  70.    {
  71.       //lRegen_WndProc
  72.       //lRegen_WndProc
  73.  
  74.       case WM_INITDIALOG :
  75.          //lRegen_InitDialogBegin
  76.          //lRegen_InitDialogBegin
  77.          //Regen_WM_InitDialog
  78.          //Regen_WM_InitDialog
  79.          return TRUE;
  80.  
  81.       case WM_COMMAND :
  82.       #ifdef WIN32
  83.          CtlId  = LOWORD(wParam);
  84.          Notify = HIWORD(wParam);
  85.          CtlWnd = (HWND)lParam;
  86.       #else
  87.          CtlId  = wParam;
  88.          Notify = HIWORD(lParam);
  89.          CtlWnd = (HWND)LOWORD(lParam);
  90.       #endif
  91.          switch(CtlId)
  92.          {
  93.             case IDOK :
  94.                //Regen_IDOK
  95.                //Regen_IDOK
  96.                break; 
  97.  
  98.             //lRegen_CustomCommand
  99.             //lRegen_CustomCommand
  100.             }
  101.             break;
  102.  
  103.       case WM_DESTROY :
  104.         //Regen_WM_Destroy
  105.         //Regen_WM_Destroy
  106.          break;
  107.    }
  108.    return DefViewProc(hWnd, uMessage, wParam, lParam);
  109. }
  110.  
  111. //Regen_CustomCode
  112. //Regen_CustomCode
  113.