Click here to Skip to main content
15,920,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating a dll Pin
Toni785-Jun-03 22:48
Toni785-Jun-03 22:48 
GeneralRe: Creating a dll Pin
Cedric Moonen5-Jun-03 22:56
Cedric Moonen5-Jun-03 22:56 
GeneralRe: Creating a dll Pin
Toni786-Jun-03 11:15
Toni786-Jun-03 11:15 
GeneralMessaging question Pin
Stan the man5-Jun-03 21:38
Stan the man5-Jun-03 21:38 
GeneralRe: Messaging question Pin
jhwurmbach5-Jun-03 21:47
jhwurmbach5-Jun-03 21:47 
GeneralRe: Messaging question Pin
Neville Franks6-Jun-03 3:42
Neville Franks6-Jun-03 3:42 
GeneralRe: Messaging question Pin
iceage6-Jun-03 0:14
iceage6-Jun-03 0:14 
GeneralProblems of SHBrowseFolder() and SHFormatDrive() Pin
charisma_youn5-Jun-03 21:36
charisma_youn5-Jun-03 21:36 
One question:

I'm try to get the folder name with SHBrowseFolder() and want to create a new folder on folder-browsing dialog
by clicking right button(popup menu) or clicking 'new folder' button I have made if possible.

On MSDN, 'ulFlags' field in BROWSEINFO structure includes a flag following.

BIF_NONEWFOLDERBUTTON
Version 6.0. Do not include the New Folder button in the browse dialog box


I suppose SHBrowseFolder() has a 'Create new folder' button as a default according to that flag.
But when SHBrowseFolder() runs, there is no 'Create new folder'.

And to my suprise, not only BIF_NONEWFOLDERBUTTON flag but also half of flags in 'uiFlags' field are not defined in 'shlobj.h'.
Of course, I'm using Visual Studio 6.0.

In short, I hope to create new folder on folder-browsing dialog by all means.



/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////



The other question:

After a format dialog is created by running SHFormatDrive(), pressing a 'Start' button progresses formatting.
Though formatting was completed, the format dialog never disappear.

Only the format dialog don't disappear until 'Close' button is pressed.
That is, a blocking happens until 'Close' button is pressed.

I wanted to progress my routine for copying files immediately, after formatting is completed.
So I coded like this.



void CSetDlg::OnButtonMakeDisk()
{
            .
            .
            .

    if( AfxMessageBox("Not a sufficient space in a diskette.\n\nDo you want to format a diskette?", MB_YESNO) == IDYES)
    {
        if( SHFormatDrive(this->GetSafeHwnd(), m_ComboDrive.GetCurSel(), SHFMT_ID_DEFAULT, 1) != SHFMT_ID_DEFAULT )
            return;
    }
    else
        return;

            .
            .
        Here is my routine for copying files...
            .
            .
}



However, though I press 'Start' button for diskette formatting,
I should press 'Close' button for ending of format dialog.

So, SHFormatDrive() always returns SHFMT_CANCEL and OnButtonMakeDisk() terminate.

How can I progress my routine for copying files immediately, after formatting is completed ?
Subclassing? Message hooking?

I cannot get the ID or Message of 'Start' button on a format dialog.

Please advise me... help me...
I'll wait your good advices.
GeneralRe: Problems of SHBrowseFolder() and SHFormatDrive() Pin
jhwurmbach5-Jun-03 21:56
jhwurmbach5-Jun-03 21:56 
QuestionHow to explicitly load a MFC dll ? Pin
BhaskarBora5-Jun-03 21:28
BhaskarBora5-Jun-03 21:28 
AnswerRe: How to explicitly load a MFC dll ? Pin
Anonymous6-Jun-03 3:40
Anonymous6-Jun-03 3:40 
AnswerRe: How to explicitly load a MFC dll ? Pin
Roger Allen6-Jun-03 10:30
Roger Allen6-Jun-03 10:30 
GeneralRe: How to explicitly load a MFC dll ? Pin
BhaskarBora9-Jun-03 23:06
BhaskarBora9-Jun-03 23:06 
Questionhow to use tabctrl in xp look? Pin
Tibor Blazko5-Jun-03 20:57
Tibor Blazko5-Jun-03 20:57 
AnswerRe: how to use tabctrl in xp look? Pin
webkoder30-Jun-04 1:52
webkoder30-Jun-04 1:52 
QuestionHow do you add two LPTSTR together? Pin
Member 4048135-Jun-03 20:01
Member 4048135-Jun-03 20:01 
AnswerRe: How do you add two LPTSTR together? Pin
Christian Graus5-Jun-03 20:16
protectorChristian Graus5-Jun-03 20:16 
GeneralRe: How do you add two LPTSTR together? Pin
cmk5-Jun-03 22:01
cmk5-Jun-03 22:01 
AnswerRe: How do you add two LPTSTR together? Pin
Ernesto D.5-Jun-03 22:14
Ernesto D.5-Jun-03 22:14 
GeneralRe: How do you add two LPTSTR together? Pin
Gary R. Wheeler7-Jun-03 6:47
Gary R. Wheeler7-Jun-03 6:47 
GeneralCan't catch OnClose() in CSocket Pin
Bash5-Jun-03 19:55
Bash5-Jun-03 19:55 
GeneralCalling function from VB dll in VC++ Pin
modular5-Jun-03 19:35
modular5-Jun-03 19:35 
GeneralRe: Calling function from VB dll in VC++ Pin
Ernesto D.5-Jun-03 22:19
Ernesto D.5-Jun-03 22:19 
GeneralRe: Calling function from VB dll in VC++ Pin
Michael P Butler6-Jun-03 1:59
Michael P Butler6-Jun-03 1:59 
GeneralDisplaying icon along with item in the Clistctrl Pin
Anonymous5-Jun-03 18:24
Anonymous5-Jun-03 18:24 

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.