Click here to Skip to main content
15,885,365 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Enigma with ShellExecute ? Pin
CPallini4-Oct-09 23:37
mveCPallini4-Oct-09 23:37 
GeneralRe: Enigma with ShellExecute ? Pin
Souldrift4-Oct-09 23:42
Souldrift4-Oct-09 23:42 
GeneralRe: Enigma with ShellExecute ? Pin
Souldrift5-Oct-09 1:24
Souldrift5-Oct-09 1:24 
QuestionCan i change window title of SHBrowseForFolder Function. Pin
Le@rner4-Oct-09 21:11
Le@rner4-Oct-09 21:11 
AnswerRe: Can i change window title of SHBrowseForFolder Function. Pin
DeepakMega4-Oct-09 21:34
DeepakMega4-Oct-09 21:34 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
Le@rner4-Oct-09 21:39
Le@rner4-Oct-09 21:39 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
Le@rner4-Oct-09 21:42
Le@rner4-Oct-09 21:42 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
CPallini4-Oct-09 22:05
mveCPallini4-Oct-09 22:05 
You may use the lpfn member of the struct, for instance
int CALLBACK MyCallback(      
    HWND hwnd,
    UINT uMsg,
    LPARAM lParam,
    LPARAM lpData
)
{
    if (uMsg == BFFM_INITIALIZED)
      SetWindowText(hwnd, _T("Hi folks"));
    return 0;
}


and then

//...
BROWSEINFO   bi = {
  GetSafeHwnd(),
  NULL,
  szPath,
  _T("Test title for browse dialog"),
  BIF_VALIDATE|BIF_UAHINT|BIF_NEWDIALOGSTYLE|BIF_NONEWFOLDERBUTTON|BIF_RETURNONLYFSDIRS,
  MyCallback,
  NULL
};

pidl = SHBrowseForFolder ( &bi );


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: Can i change window title of SHBrowseForFolder Function. Pin
Iain Clarke, Warrior Programmer4-Oct-09 22:04
Iain Clarke, Warrior Programmer4-Oct-09 22:04 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
Le@rner4-Oct-09 22:15
Le@rner4-Oct-09 22:15 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
Le@rner4-Oct-09 22:21
Le@rner4-Oct-09 22:21 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
Stuart Dootson5-Oct-09 0:11
professionalStuart Dootson5-Oct-09 0:11 
QuestionWrong Output, Cant catch the mistake (DFS) Pin
zeego4-Oct-09 20:51
zeego4-Oct-09 20:51 
AnswerRe: Wrong Output, Cant catch the mistake (DFS) Pin
DeepakMega4-Oct-09 21:26
DeepakMega4-Oct-09 21:26 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego4-Oct-09 22:30
zeego4-Oct-09 22:30 
AnswerRe: Wrong Output, Cant catch the mistake (DFS) Pin
Saurabh.Garg4-Oct-09 22:53
Saurabh.Garg4-Oct-09 22:53 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego4-Oct-09 23:07
zeego4-Oct-09 23:07 
AnswerRe: Wrong Output, Cant catch the mistake (DFS) Pin
DeepakMega4-Oct-09 23:32
DeepakMega4-Oct-09 23:32 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego4-Oct-09 23:45
zeego4-Oct-09 23:45 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego12-Oct-09 20:52
zeego12-Oct-09 20:52 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
DeepakMega12-Oct-09 22:17
DeepakMega12-Oct-09 22:17 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego12-Oct-09 23:14
zeego12-Oct-09 23:14 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
DeepakMega12-Oct-09 22:48
DeepakMega12-Oct-09 22:48 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego12-Oct-09 23:11
zeego12-Oct-09 23:11 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
DeepakMega12-Oct-09 23:45
DeepakMega12-Oct-09 23:45 

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.