home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / nsadrnam.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.5 KB  |  80 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // NSAdrNam.h : header file
  20. //
  21.  
  22. #ifndef __NSADRNAM_H__
  23. #define __NSADRNAM_H__
  24.  
  25. #include "apiaddr.h"
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CNSAddressNameEditField window
  28. #include "genedit.h"
  29.  
  30. class CNSAddressNameEditField : public CGenericEdit
  31. {
  32. // Construction
  33. public:
  34.     CNSAddressNameEditField();
  35.     HFONT m_cfTextFont;
  36.     BOOL m_bNameCompletion;
  37.     BOOL m_bAttemptNameCompletion;
  38.     int  m_iTextHeight;
  39.     UINT m_uTypedownClock;
  40.     BOOL m_bSetTimerForCompletion;
  41.  
  42.     void DrawNameCompletion(void);
  43.     void SetNameCompletionFlag(BOOL bComplete) { m_bAttemptNameCompletion = bComplete; }
  44.     BOOL Create( CWnd *pParent );
  45.  
  46. // Overrides
  47.     // ClassWizard generated virtual function overrides
  48.     //{{AFX_VIRTUAL(CNSAddressNameEditField)
  49.     //}}AFX_VIRTUAL
  50.  
  51. // Implementation
  52. public:
  53.     LPADDRESSPARENT m_pIAddressParent;
  54.  
  55.     void  SetControlParent(LPADDRESSPARENT pIAddressParent) 
  56.         { m_pIAddressParent = pIAddressParent; }
  57.     virtual ~CNSAddressNameEditField();
  58.  
  59.     void  SetCSID(int16 csid);
  60.     // Generated message map functions
  61. protected:
  62.  
  63.     //{{AFX_MSG(CNSAddressNameEditField)
  64.     afx_msg void OnKillFocus(CWnd * pNewWnd);
  65.     afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  66.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  67.     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  68.     afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  69.     afx_msg void OnTimer( UINT  nIDEvent );
  70.     //}}AFX_MSG
  71.  
  72.     afx_msg BOOL PreTranslateMessage( MSG* pMsg );
  73.  
  74.     DECLARE_MESSAGE_MAP()
  75. };
  76.  
  77. /////////////////////////////////////////////////////////////////////////////
  78.  
  79. #endif __NSADRNAM_H__    // end define of CNSAddressNameEditField
  80.