mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
3.1 KiB
116 lines
3.1 KiB
/**********************************************************************/
|
|
/** Microsoft Windows/NT **/
|
|
/** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
|
|
/**********************************************************************/
|
|
|
|
/*
|
|
chkrgdlg.h
|
|
WINS Check registered names dialog
|
|
|
|
FILE HISTORY:
|
|
|
|
*/
|
|
|
|
#if !defined _CHKRGDLG_H
|
|
#define _CHKRGDLG_H
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
#include "dialog.h"
|
|
#include <ipaddr.hpp>
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CCheckRegNames dialog
|
|
|
|
class CCheckRegNames : public CBaseDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CCheckRegNames(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CCheckRegNames)
|
|
enum { IDD = IDD_CHECK_REG_NAMES };
|
|
CEdit m_editRecordNameForList;
|
|
CButton m_buttonAddServer;
|
|
CButton m_buttonRemoveServer;
|
|
CButton m_buttonBrowseServer;
|
|
CButton m_buttonNameremove;
|
|
CButton m_buttonBrowseName;
|
|
CButton m_buttonAddName;
|
|
CListBox m_listServer;
|
|
CListBox m_listName;
|
|
CEdit m_editServer;
|
|
CEdit m_editName;
|
|
int m_nFileName;
|
|
CString m_strName;
|
|
CString m_strServer;
|
|
int m_nFileServer;
|
|
CString m_strRecNameForList;
|
|
BOOL m_fVerifyWithPartners;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CCheckRegNames)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CCheckRegNames)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnNameBrowse();
|
|
afx_msg void OnServerBrowse();
|
|
afx_msg void OnChangeEditName();
|
|
afx_msg void OnChangeEditServer();
|
|
afx_msg void OnSelchangeListName();
|
|
afx_msg void OnSelchangeListServer();
|
|
virtual void OnOK();
|
|
afx_msg void OnNameAdd();
|
|
afx_msg void OnNameRemove();
|
|
afx_msg void OnServerAdd();
|
|
afx_msg void OnServerRemove();
|
|
afx_msg void OnRadioNameFile();
|
|
afx_msg void OnRadioNameList();
|
|
afx_msg void OnRadioServerFile();
|
|
afx_msg void OnRadioServerList();
|
|
afx_msg void OnChangeEditNameList();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
afx_msg void OnChangeIpAddress();
|
|
|
|
CWndIpAddress m_ipaServerIPAddress;
|
|
|
|
public:
|
|
CWinsNameArray m_strNameArray;
|
|
CStringArray m_strServerArray;
|
|
|
|
private:
|
|
void EnableControls(int nNameOrServer, BOOL bEnable);
|
|
void ParseFile(CString strFile, int nServerOrName);
|
|
void SetControlState(int NameOrServer);
|
|
void Add(int nServerOrName);
|
|
void AddFileContent(CString & strContent, int nNameOrServer);
|
|
BOOL CheckIfPresent(CString & strText, int nNameOrServer) ;
|
|
BOOL CheckIfPresent(CWinsName & winsName, int nNameOrServer);
|
|
BOOL CheckIfAdded(CString & strText, int nNameOrServer);
|
|
BOOL CheckIfAdded(CWinsName winsName, int nNameOrServer);
|
|
BOOL ParseName(CString & strNameIn, CWinsName & winsName, CString & strFormattedName);
|
|
|
|
public:
|
|
virtual DWORD * GetHelpMap() { return WinsGetHelpMap(CCheckRegNames::IDD);};//return NULL;}
|
|
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined _CHKRGDLG_H
|