Click here to Skip to main content
15,895,794 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.5K   4.5K   57  
This article describes how to use the "Select Users or Groups" system dialog.
/*
	$Workfile:$
	$Header:$

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

	@doc
	@module AdvancedProperties.h - Advanced Props dlg header |

	

	Revision History:
	$Log$ 
*/

#if !defined(AFX_ADVANCEDPROPERTIES_H__DE46F9FE_7639_4B83_AB87_7E7FB06F4BF0__INCLUDED_)
#define AFX_ADVANCEDPROPERTIES_H__DE46F9FE_7639_4B83_AB87_7E7FB06F4BF0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DSOP_Filter.h"
#include "DSOP_ScopeFlag.h"
#include "DSOP_ScopeType.h"
#include "DSOP_Downlevel.h"

/*
	Class:				CAdvancedProperties
	Derived From:		CDialog
	Type of class:		Derived

	Description:
		

	@class Advanced Props dlg
	@base public | CDialog
*/
class CAdvancedProperties : public CDialog
{
public:
	CAdvancedProperties(CWnd* pParent = NULL);   
	CDSOP_ScopeType m_dlgScopeType;
	CDSOP_ScopeFlag m_dlgScopeFlag;
	CDSOP_Filter	m_dlgBoth;
	CDSOP_Filter	m_dlgMixed;
	CDSOP_Filter	m_dlgNative;
	CDSOP_Downlevel m_dlgDownLevel;
	DWORD			m_flOptions;


	//{{AFX_DATA(CAdvancedProperties)
	enum { IDD = IDD_ADVANCED };
	CStatic	m_staticScope;
	CStatic	m_staticDownLevel;
	CStatic	m_staticNative;
	CStatic	m_staticMixed;
	CStatic	m_staticBoth;
	CStatic	m_staticScopeType;
	//}}AFX_DATA


	//{{AFX_VIRTUAL(CAdvancedProperties)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);   
	//}}AFX_VIRTUAL

protected:

	//{{AFX_MSG(CAdvancedProperties)
	virtual BOOL OnInitDialog();
	afx_msg void OnScopeTypeButton();
	afx_msg void OnOk2();
	afx_msg void OnCancel2();
	afx_msg void OnUplevelFilterFlagsBoth();
	afx_msg void OnUplevelFilterFlagsMixed();
	afx_msg void OnUplevelFilterFlagsNative();
	afx_msg void OnDownlevelFilter();
	afx_msg void OnScopeFlags();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}


#endif // !defined(AFX_ADVANCEDPROPERTIES_H__DE46F9FE_7639_4B83_AB87_7E7FB06F4BF0__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