Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: m_bAutoDelete and doc class Pin
perlmunger26-Jul-02 18:58
perlmunger26-Jul-02 18:58 
GeneralRe: m_bAutoDelete and doc class Pin
nss26-Jul-02 19:59
nss26-Jul-02 19:59 
GeneralNewbie: Referencing several controls Pin
26-Jul-02 7:37
suss26-Jul-02 7:37 
GeneralRe: Newbie: Referencing several controls Pin
Chris Losinger26-Jul-02 8:04
professionalChris Losinger26-Jul-02 8:04 
GeneralRe: Newbie: Referencing several controls Pin
26-Jul-02 8:45
suss26-Jul-02 8:45 
GeneralRe: Newbie: Referencing several controls Pin
Joel Lucsy26-Jul-02 18:24
Joel Lucsy26-Jul-02 18:24 
Generalpopulating a multiline edit, or Crichedit Pin
nss26-Jul-02 7:28
nss26-Jul-02 7:28 
GeneralRe: populating a multiline edit, or Crichedit Pin
nss26-Jul-02 7:51
nss26-Jul-02 7:51 
I'm going to try (from CP)
/*void CRichEgView::OnReadin() <br />
{<br />
	CString sWriteText; //Where the text will be streamed from<br />
	sWriteText="Rich text is shown here in sample project";<br />
<br />
	// This is hard-coded for example purposes. It is likely this would<br />
	// be read from file or another source.<br />
	EDITSTREAM es;<br />
	es.dwCookie = (DWORD)&sWriteText; // Pass a pointer to the CString to the callback function<br />
	es.pfnCallback = MEditStreamInCallback; // Specify the pointer to the callback function<br />
<br />
	GetRichEditCtrl().StreamIn(SF_RTF,es); // Perform the streaming<br />
}<br />
<br />
  DWORD __stdcall MEditStreamInCallback(DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb)<br />
{<br />
	CString *psBuffer = (CString *)dwCookie;<br />
<br />
	if (cb < psBuffer->GetLength()) cb = psBuffer->GetLength();<br />
<br />
	for (int i=0;i<cb;i++)<br />
	{<br />
		*(pbBuff+i) = psBuffer->GetAt(i);<br />
	}<br />
<br />
	*pcb = cb;<br />
<br />
	*psBuffer = psBuffer->Mid(cb);<br />
<br />
	return 0;<br />
}<br />
*/


Couple of Questions: OnReadIn() is not a function in response to a message right? I didnt see anything like that in the classwizard.

This std_call function. Do I need to include it in the h file?
Thanks,
ns
GeneralInset Dialog Tab Order Pin
Dov Sherman26-Jul-02 7:14
Dov Sherman26-Jul-02 7:14 
GeneralRe: Inset Dialog Tab Order Pin
Ernest Laurentin27-Jul-02 12:39
Ernest Laurentin27-Jul-02 12:39 
Questionhow to pass in an index when LButtondown handler runs? Pin
nss26-Jul-02 6:02
nss26-Jul-02 6:02 
AnswerRe: how to pass in an index when LButtondown handler runs? Pin
perlmunger26-Jul-02 19:20
perlmunger26-Jul-02 19:20 
QuestionCreatePrinterDC fails? Pin
-Dy26-Jul-02 5:38
-Dy26-Jul-02 5:38 
GeneralCRecttraker with CScrollview Pin
g-sus26-Jul-02 5:19
g-sus26-Jul-02 5:19 
GeneralMy CListCtrl & Ownerdata Pin
26-Jul-02 5:16
suss26-Jul-02 5:16 
Generaldoes the forum belong to ... Pin
includeh1026-Jul-02 4:33
includeh1026-Jul-02 4:33 
GeneralRe: does the forum belong to ... Pin
benjymous26-Jul-02 5:25
benjymous26-Jul-02 5:25 
GeneralRe: does the forum belong to ... Pin
Alexandru Savescu26-Jul-02 10:52
Alexandru Savescu26-Jul-02 10:52 
GeneralCreating new controls and handling events Pin
jparsons26-Jul-02 4:20
jparsons26-Jul-02 4:20 
GeneralRe: Creating new controls and handling events Pin
jparsons26-Jul-02 4:29
jparsons26-Jul-02 4:29 
GeneralRe: Creating new controls and handling events Pin
Tomasz Sowinski26-Jul-02 4:30
Tomasz Sowinski26-Jul-02 4:30 
GeneralPrinting Pin
Anthony988726-Jul-02 3:47
Anthony988726-Jul-02 3:47 
GeneralRe: Printing Pin
Chris Losinger26-Jul-02 4:20
professionalChris Losinger26-Jul-02 4:20 
GeneralRe: Printing Pin
Anthony988726-Jul-02 5:07
Anthony988726-Jul-02 5:07 
GeneralRe: Printing Pin
Chris Losinger26-Jul-02 5:08
professionalChris Losinger26-Jul-02 5:08 

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.