Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPalettes and HDC?? Pin
dSolariuM17-Feb-07 3:01
dSolariuM17-Feb-07 3:01 
AnswerRe: Palettes and HDC?? Pin
Waldermort17-Feb-07 3:20
Waldermort17-Feb-07 3:20 
QuestionProblem with vista message WM_DWMWINDOWMAXIMIZEDCHANGE Pin
michele_cv17-Feb-07 0:32
michele_cv17-Feb-07 0:32 
AnswerRe: Problem with vista message WM_DWMWINDOWMAXIMIZEDCHANGE Pin
Ravi Bhavnani17-Feb-07 16:32
professionalRavi Bhavnani17-Feb-07 16:32 
Questionmore info about "browserinfo" ? Pin
rolfhorror16-Feb-07 22:48
rolfhorror16-Feb-07 22:48 
AnswerRe: more info about "browserinfo" ? Pin
Dominik Reichl16-Feb-07 23:22
Dominik Reichl16-Feb-07 23:22 
GeneralRe: more info about "browserinfo" ? Pin
rolfhorror16-Feb-07 23:49
rolfhorror16-Feb-07 23:49 
GeneralRe: more info about "browserinfo" ? Pin
rolfhorror17-Feb-07 0:01
rolfhorror17-Feb-07 0:01 
..i'm getting an error when using bi.ulFlags = BIF_USENEWGUI;


error C2065: 'BIF_USENEWUI' : undeclared identifier

heres the code i'm using, i must be doing something wrong:

#include "shlobj.h" //dont know if it matters

BOOL BrowseForFolder(HWND hOwner, CString& folderpath)
{
::OleInitialize(NULL);

// Create a pointer to a MALLOC (memory allocation object)
// then get the Shell Malloc.
IMalloc* pMalloc = 0;
if(::SHGetMalloc(&pMalloc) != NOERROR)
return false;

// Now create BROWSEINFO structure, to tell the shell how
// to display the dialog.
BROWSEINFO bi;
memset(&bi, 0, sizeof(bi));

bi.hwndOwner = hOwner;
bi.lpszTitle = "hello";
bi.ulFlags = BIF_USENEWUI | BIF_RETURNONLYFSDIRS;

// Now show the dialog and get the itemIDList for the selected folder.
LPITEMIDLIST pIDL = ::SHBrowseForFolder(&bi);
if(pIDL == NULL)
return false;

// Now create a buffer to store the path, thne get it.
char buffer[_MAX_PATH];
if(::SHGetPathFromIDList(pIDL, buffer) == 0)
return false;

::OleUninitialize();

// Finally, set the string to the path, and return true.
folderpath = buffer;
return true;
}
GeneralRe: more info about "browserinfo" ? Pin
Newbie0017-Feb-07 1:00
Newbie0017-Feb-07 1:00 
GeneralRe: more info about "browserinfo" ? Pin
Dominik Reichl17-Feb-07 1:07
Dominik Reichl17-Feb-07 1:07 
GeneralRe: more info about "browserinfo" ? Pin
Newbie0017-Feb-07 1:17
Newbie0017-Feb-07 1:17 
GeneralRe: more info about "browserinfo" ? Pin
Dominik Reichl17-Feb-07 1:20
Dominik Reichl17-Feb-07 1:20 
GeneralRe: more info about "browserinfo" ? Pin
Dominik Reichl17-Feb-07 1:05
Dominik Reichl17-Feb-07 1:05 
GeneralRe: more info about "browserinfo" ? Pin
rolfhorror17-Feb-07 2:32
rolfhorror17-Feb-07 2:32 
GeneralRe: more info about "browserinfo" ? Pin
Hamid_RT17-Feb-07 5:21
Hamid_RT17-Feb-07 5:21 
GeneralRe: more info about "browserinfo" ? Pin
rolfhorror17-Feb-07 5:47
rolfhorror17-Feb-07 5:47 
GeneralRe: more info about "browserinfo" ? Pin
Hamid_RT17-Feb-07 6:54
Hamid_RT17-Feb-07 6:54 
QuestionVS font Pin
Waldermort16-Feb-07 22:45
Waldermort16-Feb-07 22:45 
AnswerRe: VS font Pin
Try16-Feb-07 22:51
Try16-Feb-07 22:51 
GeneralRe: VS font Pin
Waldermort16-Feb-07 23:01
Waldermort16-Feb-07 23:01 
AnswerRe: VS font Pin
Newbie0017-Feb-07 0:50
Newbie0017-Feb-07 0:50 
QuestionRe: VS font Pin
Waldermort17-Feb-07 19:18
Waldermort17-Feb-07 19:18 
AnswerRe: VS font Pin
Newbie0018-Feb-07 10:28
Newbie0018-Feb-07 10:28 
QuestionListView Pin
Try16-Feb-07 22:39
Try16-Feb-07 22:39 
AnswerRe: ListView Pin
PJ Arends16-Feb-07 23:22
professionalPJ Arends16-Feb-07 23: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.