Click here to Skip to main content
15,892,537 members
Articles / Programming Languages / C#

Using the Windows 2000/XP Object Selection Dialog

Rate me:
Please Sign up or sign in to vote.
4.92/5 (29 votes)
21 Nov 2005CPOL14 min read 251.3K   4.5K   57  
This article describes how to use the "Select Users or Groups" system dialog.
/*
	$Workfile:$
	$Header:$

	Copyright � 1997-2003 MDS SCIEX�.
	All rights reserved.

	@doc
	@module SelectUsersOrGroupsDlg.h - Class defn for the main dialog |

	

	Revision History:
	$Log$ 
*/


#if !defined(AFX_SELECTUSERSORGROUPSDLG_H__B5CD6776_FF6E_4FBD_98E5_5D0FDFB42C38__INCLUDED_)
#define AFX_SELECTUSERSORGROUPSDLG_H__B5CD6776_FF6E_4FBD_98E5_5D0FDFB42C38__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "AdvancedProperties.h"
/////////////////////////////////////////////////////////////////////////////
// CSelectUsersOrGroupsDlg dialog

class CSelectUsersOrGroupsDlg : public CDialog
{
// Construction
public:
	CSelectUsersOrGroupsDlg(CWnd* pParent = NULL);	// standard constructor
	HRESULT ProcessResults(IDataObjectPtr& ptrData);

// Dialog Data
	//{{AFX_DATA(CSelectUsersOrGroupsDlg)
	enum { IDD = IDD_SELECTUSERSORGROUPS_DIALOG };
	CListCtrl	m_list;
	CAdvancedProperties m_dlgAdvanced;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSelectUsersOrGroupsDlg)
	public:
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CHeaderCtrl m_hdr;
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSelectUsersOrGroupsDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSelusers();
	afx_msg void OnAdvanced();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SELECTUSERSORGROUPSDLG_H__B5CD6776_FF6E_4FBD_98E5_5D0FDFB42C38__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) AB SCIEX
Canada Canada
I was born and grew up in Northern Germany grew up in Quebec in a French Language environment. I finished High School in Fergus, Ontario. After a 4 year training as a Pipe Organ Builder in Germany, I returned to Canada to get a B.Sc. in Computer Science. I'm currently working for a company called AB SCIEX working on Mass Spectrometer Software, am married, and have three often wonderful children. What you believe in matters - I am a follower of Jesus Christ - we attend a German-Lutheran congregation in downtown Toronto.

Comments and Discussions