home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / componen / interact / demo / data.2 / samples / ansic / INTERACT / STATUSLI.C < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-19  |  2.0 KB  |  84 lines

  1. //lRegen_FileHeading
  2. //lRegen_FileHeading
  3.  
  4.      /********************************************************************
  5.       *
  6.       *   Source File:  StatusLi.c                                        
  7.       *   Author:                                                         
  8.       *   Module:                                                         
  9.       *   Program Desc:                                                                                 
  10.       *   Date:         Mon Feb 19 13:11:37 1996                          
  11.       *   Language:     ANSI C
  12.       *
  13.       ********************************************************************/
  14.  
  15. #include ".\idoiface.h"
  16.  
  17.  
  18. //lRegen_Variables
  19.  
  20. static HWND hStatus;
  21.  
  22. //lRegen_Variables
  23.  
  24. VIEW     hViewStatusLine;
  25. HWND     hWndStatusLine;
  26. LRESULT CALLBACK EXPORT fnStatusLineWndProc(HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam)
  27. {
  28. GETVIEW;
  29.    WORD CtlId;
  30.    WORD Notify;
  31.    HWND CtlWnd;
  32.  
  33.    //lRegen_WindowProcVariables
  34.    //lRegen_WindowProcVariables
  35.  
  36.    switch(uMessage)
  37.    {
  38.       //lRegen_WndProc
  39.       //lRegen_WndProc
  40.  
  41.       case WM_INITDIALOG :
  42.          //lRegen_InitDialogBegin
  43.  
  44.          hStatus = GetDlgItem(hWnd, IDC_STATUS1);
  45.  
  46.          //lRegen_InitDialogBegin
  47.          //Regen_WM_InitDialog
  48.          //Regen_WM_InitDialog
  49.          return TRUE;
  50.  
  51.       case WM_COMMAND :
  52.       #ifdef WIN32
  53.          CtlId  = LOWORD(wParam);
  54.          Notify = HIWORD(wParam);
  55.          CtlWnd = (HWND)lParam;
  56.       #else
  57.          CtlId  = wParam;
  58.          Notify = HIWORD(lParam);
  59.          CtlWnd = (HWND)LOWORD(lParam);
  60.       #endif
  61.          switch(CtlId)
  62.          {
  63.             //lRegen_CustomCommand
  64.             //lRegen_CustomCommand
  65.             }
  66.             break;
  67.  
  68.       case WM_DESTROY :
  69.         //Regen_WM_Destroy
  70.         //Regen_WM_Destroy
  71.          break;
  72.    }
  73.    return DefViewProc(hWnd, uMessage, wParam, lParam);
  74. }
  75.  
  76. //Regen_CustomCode
  77.  
  78. void DisplayDSL(LPSTR lpszMessage)
  79. {
  80.    SetWindowText(hStatus, lpszMessage);
  81. }
  82.  
  83. //Regen_CustomCode
  84.