Click here to Skip to main content
15,910,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with some C Pin
markkuk19-Oct-03 11:45
markkuk19-Oct-03 11:45 
GeneralRe: Convert int to hexa Pin
Alexander M.,19-Oct-03 10:26
Alexander M.,19-Oct-03 10:26 
GeneralRe: MRU problem Pin
Neville Franks19-Oct-03 9:45
Neville Franks19-Oct-03 9:45 
GeneralRe: MRU problem Pin
YaronNir19-Oct-03 22:47
YaronNir19-Oct-03 22:47 
GeneralRe: MRU problem Pin
Neville Franks19-Oct-03 23:13
Neville Franks19-Oct-03 23:13 
GeneralRe: MRU problem Pin
YaronNir19-Oct-03 23:25
YaronNir19-Oct-03 23:25 
GeneralRe: MRU problem Pin
Neville Franks20-Oct-03 0:02
Neville Franks20-Oct-03 0:02 
GeneralRe: MRU problem Pin
YaronNir20-Oct-03 0:14
YaronNir20-Oct-03 0:14 
I think you are right,

but what am i missing in the close documents???

this is the code for the close request, i differ between 2 things
void CMyDoc::OnCloseDocument() 
{
	((CMainFrame*)AfxGetMainWnd())->OnFileClose();

	if (((CMainFrame*)AfxGetMainWnd())->m_bCloseRequest)
		CDocument::OnCloseDocument();
}


this is what i do in CMainFrame::OnFileClose() :

void CMainFrame::OnFileClose() 
{
	CMCEditorView* pView = (CMyView*)GetActiveView();
	pView->ClearListCtrl();

	SetWindowText(_T("My application - Untitiled"));
}


i differ between a closing application request and closing document request....the latter is just initializing the list control i have and set the title to be "untitled" and the first close the application.....

what am i missing?


thanks for all the help so far...

Yaron

Ask not what your application can do for you,
Ask what you can do for your application
GeneralRe: MRU problem Pin
Neville Franks20-Oct-03 2:16
Neville Franks20-Oct-03 2:16 
GeneralRe: MRU problem Pin
YaronNir20-Oct-03 2:41
YaronNir20-Oct-03 2:41 
GeneralRe: MRU problem Pin
Neville Franks20-Oct-03 21:16
Neville Franks20-Oct-03 21:16 
GeneralApplication does not terminating Pin
csperber19-Oct-03 7:42
csperber19-Oct-03 7:42 
GeneralRe: Application does not terminating Pin
Neville Franks19-Oct-03 9:47
Neville Franks19-Oct-03 9:47 
GeneralRe: Application does not terminating Pin
csperber20-Oct-03 8:30
csperber20-Oct-03 8:30 
GeneralRe: Application does not terminating Pin
Anthony_Yio20-Oct-03 1:42
Anthony_Yio20-Oct-03 1:42 
GeneralRe: Application does not terminating Pin
csperber20-Oct-03 8:39
csperber20-Oct-03 8:39 
GeneralRe: Application does not terminating Pin
Anthony_Yio20-Oct-03 16:19
Anthony_Yio20-Oct-03 16:19 
GeneralRe: Application does not terminating Pin
Mikey_E15-Nov-03 12:57
professionalMikey_E15-Nov-03 12:57 
Generalgetting AutoDate Pin
pnpfriend19-Oct-03 7:40
pnpfriend19-Oct-03 7:40 
GeneralJava Applets (jar) in MFC resources application Pin
Crercio O. Silva19-Oct-03 7:08
Crercio O. Silva19-Oct-03 7:08 
GeneralRe: Java Applets (jar) in MFC resources application Pin
Johnny ²19-Oct-03 21:47
Johnny ²19-Oct-03 21:47 
GeneralRe: Java Applets (jar) in MFC resources application Pin
Crercio O. Silva20-Oct-03 2:21
Crercio O. Silva20-Oct-03 2:21 
GeneralRe: Java Applets (jar) in MFC resources application Pin
Steve S20-Oct-03 2:23
Steve S20-Oct-03 2:23 
GeneralRe: Java Applets (jar) in MFC resources application Pin
Crercio O. Silva20-Oct-03 5:25
Crercio O. Silva20-Oct-03 5:25 
GeneralRe: Java Applets (jar) in MFC resources application Pin
Steve S20-Oct-03 5:50
Steve S20-Oct-03 5:50 

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.