Click here to Skip to main content
15,918,243 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSir, How to Invalidate A Button ? Pin
CodeVarma8-Feb-07 3:01
CodeVarma8-Feb-07 3:01 
AnswerRe: Sir, How to Invalidate A Button ? Pin
prasad_som8-Feb-07 3:11
prasad_som8-Feb-07 3:11 
GeneralRe: Sir, How to Invalidate A Button ? Pin
Ravi Bhavnani8-Feb-07 6:25
professionalRavi Bhavnani8-Feb-07 6:25 
GeneralRe: Sir, How to Invalidate A Button ? Pin
prasad_som8-Feb-07 7:33
prasad_som8-Feb-07 7:33 
GeneralRe: Sir, How to Invalidate A Button ? Pin
Ravi Bhavnani8-Feb-07 7:37
professionalRavi Bhavnani8-Feb-07 7:37 
QuestionCFileDialog Pin
josip cagalj8-Feb-07 2:52
josip cagalj8-Feb-07 2:52 
QuestionRe: CFileDialog Pin
David Crow8-Feb-07 3:23
David Crow8-Feb-07 3:23 
AnswerRe: CFileDialog Pin
josip cagalj8-Feb-07 23:02
josip cagalj8-Feb-07 23:02 
I tryed doing so
<br />
char szFilters[]= "Text Files (*.txt)|*.txt|All Files (*.*)|*.*||";<br />
<br />
CString m_SavePath = _T("");<br />
char IniDir[256];<br />
char szFile[256];<br />
char buff[256];<br />
strcpy(IniDir, fs2.GetFolder());//get's the folder path <br />
strcpy(buff,"");<br />
strcpy(szFile,buff);<br />
<br />
OPENFILENAME lpofn;<br />
lpofn.lStructSize	= sizeof(OPENFILENAME);<br />
lpofn.hwndOwner		= m_hWnd;<br />
lpofn.lpstrFile		= szFile;<br />
lpofn.nMaxFile		= sizeof(szFile);<br />
lpofn.lpstrFilter	= szFilters;<br />
lpofn.nFilterIndex	= 1;<br />
lpofn.lpstrDefExt	= "txt";<br />
lpofn.lpstrCustomFilter	= NULL;<br />
lpofn.lpstrFileTitle	= NULL<br />
lpofn.nMaxFile		= 0;<br />
lpofn.lpstrInitialDir	= IniDir;<br />
lpofn.Flags		= OFN_OVERWRITEPROMPT|OFN_HIDEREADONLY;<br />
lpofn.lpstrTitle	= "Save";<br />
	<br />
if(GetSaveFileName(&lpofn))<br />
{<br />
	pMainFrm->Refresh();<br />
	strcpy(IniDir, szFile);<br />
	IniDir[lpofn.nFileOffset]=0;<br />
	m_SavePath=szFile;<br />
<br />
	// The file from which to load the contents of the rich edit control.<br />
	CFile cFile(m_SavePath, CFile::modeCreate|CFile::modeWrite);<br />
	EDITSTREAM es;<br />
<br />
	es.dwCookie =  (DWORD) &cFile;<br />
	es.pfnCallback = (EDITSTREAMCALLBACK) MyStreamOutCallback;<br />
<br />
	m_Output.StreamOut(SF_TEXT,es); // Perform the streaming<br />
}<br />

and still not working!
Did I get all lpofn parametar's right, or what?
Big thanks!!!!
QuestionRe: CFileDialog Pin
David Crow9-Feb-07 2:49
David Crow9-Feb-07 2:49 
AnswerRe: CFileDialog Pin
josip cagalj11-Feb-07 21:39
josip cagalj11-Feb-07 21:39 
AnswerRe: CFileDialog Pin
Hamid_RT8-Feb-07 7:20
Hamid_RT8-Feb-07 7:20 
GeneralRe: CFileDialog Pin
josip cagalj8-Feb-07 21:29
josip cagalj8-Feb-07 21:29 
GeneralRe: CFileDialog Pin
Hamid_RT9-Feb-07 5:20
Hamid_RT9-Feb-07 5:20 
Questionadding member variables not of standard type (class wizard) Pin
ldsdbomber8-Feb-07 2:51
ldsdbomber8-Feb-07 2:51 
AnswerRe: adding member variables not of standard type (class wizard) Pin
ldsdbomber9-Feb-07 0:20
ldsdbomber9-Feb-07 0:20 
GeneralRe: adding member variables not of standard type (class wizard) Pin
ldsdbomber9-Feb-07 0:32
ldsdbomber9-Feb-07 0:32 
QuestionHow to get text on the label control ? Pin
aramsankar8-Feb-07 1:06
aramsankar8-Feb-07 1:06 
AnswerRe: How to get text on the label control ? Pin
Hamid_RT8-Feb-07 1:17
Hamid_RT8-Feb-07 1:17 
AnswerRe: How to get text on the label control ? Pin
James R. Twine8-Feb-07 1:24
James R. Twine8-Feb-07 1:24 
QuestionDialogbox Issue ? Pin
Sakthiu8-Feb-07 1:01
Sakthiu8-Feb-07 1:01 
AnswerRe: Dialogbox Issue ? Pin
Hamid_RT8-Feb-07 1:04
Hamid_RT8-Feb-07 1:04 
GeneralRe: Dialogbox Issue ? Pin
Sakthiu8-Feb-07 1:09
Sakthiu8-Feb-07 1:09 
GeneralRe: Dialogbox Issue ? Pin
Hamid_RT8-Feb-07 1:17
Hamid_RT8-Feb-07 1:17 
GeneralRe: Dialogbox Issue ? Pin
James R. Twine8-Feb-07 1:21
James R. Twine8-Feb-07 1:21 
GeneralRe: Dialogbox Issue ? Pin
Hamid_RT8-Feb-07 1:25
Hamid_RT8-Feb-07 1:25 

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.