Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRight click on listview item display context menu Pin
pgibson00770012-Mar-06 5:42
pgibson00770012-Mar-06 5:42 
AnswerRe: Right click on listview item display context menu Pin
Hamid_RT12-Mar-06 6:10
Hamid_RT12-Mar-06 6:10 
GeneralRe: Right click on listview item display context menu Pin
pgibson00770012-Mar-06 7:15
pgibson00770012-Mar-06 7:15 
GeneralRe: Right click on listview item display context menu Pin
Hamid_RT12-Mar-06 7:20
Hamid_RT12-Mar-06 7:20 
QuestionBrowse network neighborhood Pin
RobJones12-Mar-06 5:36
RobJones12-Mar-06 5:36 
AnswerRe: Browse network neighborhood Pin
Hamid_RT12-Mar-06 6:27
Hamid_RT12-Mar-06 6:27 
GeneralRe: Browse network neighborhood Pin
RobJones12-Mar-06 8:17
RobJones12-Mar-06 8:17 
AnswerRe: Browse network neighborhood Pin
RobJones12-Mar-06 8:16
RobJones12-Mar-06 8:16 
Actually I have to override these functions.. Here is the following but I am still unsure on how to filter...


//////////////////
// Get flags for custom filtering: Only enumerate folders. This is only
// called when custom filtering is used.
//
HRESULT CMyFolderDialog::OnGetEnumFlags(IShellFolder* psf, LPCITEMIDLIST pidlFolder,
	DWORD *pgrfFlags)
{
	BFTRACE(_T("CMyFolderDialog::OnGetEnumFlags\n"));
	
	*pgrfFlags = SHCONTF_FOLDERS; // show only folders
	
	return S_OK;
}

//////////////////
// Determine whether to display item: doesn't actually do anything, just
// illustrates the function in action through TRACE diagnostics.
//
HRESULT CMyFolderDialog::OnShouldShow(IShellFolder* psf,
	LPCITEMIDLIST pidlFolder,
	LPCITEMIDLIST pidlItem)
{
	BFTRACE(_T("CMyFolderDialog::OnShouldShow(%p): %s: %s"),
		psf, GetPathName(pidlFolder), GetDisplayNameOf(psf, pidlItem, SHGDN_NORMAL));

	SFGAOF attrs;
	psf->GetAttributesOf(1, &pidlItem, &attrs);
	BOOL bShow = attrs & (SFGAO_FILESYSTEM | SFGAO_HASSUBFOLDER);
	
	BFTRACE(_T(" [attrs: %08x]: %s\n"), attrs, bShow ? _T("Yes") : _T("No"));
	

	return bShow ? S_OK : S_FALSE;
}


Whoever said nothing's impossible never tried slamming a revolving door!
AnswerRe: Browse network neighborhood Pin
Ryan Binns12-Mar-06 17:19
Ryan Binns12-Mar-06 17:19 
GeneralRe: Browse network neighborhood Pin
RobJones13-Mar-06 3:33
RobJones13-Mar-06 3:33 
GeneralRe: Browse network neighborhood Pin
Ryan Binns13-Mar-06 3:41
Ryan Binns13-Mar-06 3:41 
Questioncrystal reports 11 Pin
aguest12-Mar-06 5:29
aguest12-Mar-06 5:29 
Questionnotification to parent Pin
Tarek Jabri12-Mar-06 5:07
Tarek Jabri12-Mar-06 5:07 
AnswerRe: notification to parent Pin
PJ Arends12-Mar-06 9:44
professionalPJ Arends12-Mar-06 9:44 
QuestionCBitmap Pin
BabyGuru12-Mar-06 5:00
BabyGuru12-Mar-06 5:00 
AnswerRe: CBitmap Pin
PJ Arends12-Mar-06 9:23
professionalPJ Arends12-Mar-06 9:23 
Questionwhat's the difference between data() and c_str() of basic_string? Pin
xjzhou12-Mar-06 4:29
xjzhou12-Mar-06 4:29 
AnswerRe: what's the difference between data() and c_str() of basic_string? Pin
Nemanja Trifunovic12-Mar-06 4:42
Nemanja Trifunovic12-Mar-06 4:42 
GeneralRe: what's the difference between data() and c_str() of basic_string? Pin
xjzhou12-Mar-06 5:01
xjzhou12-Mar-06 5:01 
GeneralRe: what's the difference between data() and c_str() of basic_string? Pin
Nemanja Trifunovic12-Mar-06 6:08
Nemanja Trifunovic12-Mar-06 6:08 
GeneralRe: what's the difference between data() and c_str() of basic_string? Pin
xjzhou14-Mar-06 4:53
xjzhou14-Mar-06 4:53 
QuestionCBitmap Pin
mehrdadov12-Mar-06 4:21
mehrdadov12-Mar-06 4:21 
AnswerRe: CBitmap Pin
xjzhou12-Mar-06 5:07
xjzhou12-Mar-06 5:07 
Questionhow can i launch a programm before session openning Pin
ss200612-Mar-06 2:54
ss200612-Mar-06 2:54 
AnswerRe: how can i launch a programm before session openning Pin
Ryan Binns12-Mar-06 17:22
Ryan Binns12-Mar-06 17:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.