Click here to Skip to main content
15,888,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: exporting classes and parent classes? Pin
Mike Nordell7-Feb-03 21:07
Mike Nordell7-Feb-03 21:07 
GeneralApp Launcher Pin
MemLeak7-Feb-03 10:10
MemLeak7-Feb-03 10:10 
GeneralRe: App Launcher Pin
Mash7-Feb-03 10:34
Mash7-Feb-03 10:34 
GeneralRe: App Launcher Pin
Mike Nordell7-Feb-03 21:08
Mike Nordell7-Feb-03 21:08 
GeneralCryptoAPI and CryptGenKey problem ! Pin
Hadi Rezaee7-Feb-03 10:10
Hadi Rezaee7-Feb-03 10:10 
QuestionHELP FILES from a WORD DOCUMENT ? Pin
youssef7-Feb-03 9:45
youssef7-Feb-03 9:45 
AnswerRe: HELP FILES from a WORD DOCUMENT ? Pin
Amit Dey7-Feb-03 11:00
Amit Dey7-Feb-03 11:00 
GeneralIt won't refresh! Pin
will13837-Feb-03 8:50
will13837-Feb-03 8:50 
Hi all,

I'm still working on a CTreeCtrl View that is a variation of the Drive view in windows explorer. My problem is this:

I put in a CD rom, and then proceed to "expand" the folders of the cd rom. With the folders still expanded (in view), I remove the CD and insert a NEW cd with a different directory structure. I then Hit my refresh key and Viola! I'm still looking at the old folders from the first CD. This is unacceptable. here's the code in my OnRefresh:


//
// Get all the views
//
CMainFrame *pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
CDriveView* pDriveView = pFrame->GetDriveViewPane();
CFileView* pFileView = pFrame->GetFileViewPane();

//
// Get the current path
//
CString path = pDriveView->GetPathFromItem(pDriveView->GetTreeCtrl().GetSelectedItem ());

//
// Update all the views
//
pDriveView->GetDocument()->UpdateAllViews((CView*)this, 0x5A,NULL);
pFileView->GetDocument()->UpdateAllViews((CView*)this, 0x5A, (CObject*) (LPCSTR) path);

So what the heck am I doing wrong?Confused | :confused: If I collapse the folder and then re-expand them, the new folders show up. Mad | :mad: I've been fighting for 3 hours with this one. Unsure | :~

Any help/suggestions or comments are greatly appreciated

Dan Willis

Code Project Rocks!
GeneralRe: It won't refresh! Pin
Jeff J7-Feb-03 9:21
Jeff J7-Feb-03 9:21 
GeneralRe: It won't refresh! Pin
will13837-Feb-03 9:29
will13837-Feb-03 9:29 
GeneralLVS_FLATSB Pin
User 98857-Feb-03 8:41
User 98857-Feb-03 8:41 
GeneralHWND from ProcessID Pin
#realJSOP7-Feb-03 7:32
mve#realJSOP7-Feb-03 7:32 
GeneralRe: HWND from ProcessID Pin
Tim Smith7-Feb-03 8:38
Tim Smith7-Feb-03 8:38 
GeneralRe: HWND from ProcessID Pin
Chris Meech7-Feb-03 8:42
Chris Meech7-Feb-03 8:42 
GeneralCan't get FrameRgn() to work! :( Pin
Rickard Andersson207-Feb-03 6:44
Rickard Andersson207-Feb-03 6:44 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Paul M Watt7-Feb-03 12:07
mentorPaul M Watt7-Feb-03 12:07 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Rickard Andersson208-Feb-03 1:54
Rickard Andersson208-Feb-03 1:54 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Mike Nordell8-Feb-03 7:15
Mike Nordell8-Feb-03 7:15 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Rickard Andersson208-Feb-03 9:39
Rickard Andersson208-Feb-03 9:39 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Mike Nordell9-Feb-03 2:26
Mike Nordell9-Feb-03 2:26 
GeneralFile association launched app... Pin
Dr Soong7-Feb-03 6:33
Dr Soong7-Feb-03 6:33 
GeneralRe: File association launched app... Pin
Neville Franks7-Feb-03 10:02
Neville Franks7-Feb-03 10:02 
GeneralRe: File association launched app... Pin
Dr Soong7-Feb-03 12:17
Dr Soong7-Feb-03 12:17 
GeneralChanging the color of a static text Pin
Tom Wright7-Feb-03 5:19
Tom Wright7-Feb-03 5:19 
GeneralRe: Changing the color of a static text Pin
AlexO7-Feb-03 5:27
AlexO7-Feb-03 5:27 

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.