Click here to Skip to main content
15,791,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: working with pointers Pin
David Crow21-Mar-22 4:16
David Crow21-Mar-22 4:16 
AnswerRe: working with pointers Pin
Calin Negru21-Mar-22 6:15
Calin Negru21-Mar-22 6:15 
QuestionCode to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
ForNow13-Mar-22 10:37
ForNow13-Mar-22 10:37 
AnswerRe: Code to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
Mircea Neacsu14-Mar-22 17:41
Mircea Neacsu14-Mar-22 17:41 
GeneralRe: Code to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
ForNow15-Mar-22 6:01
ForNow15-Mar-22 6:01 
QuestionIPv6 address compression code using vc++ Pin
Member 1252773510-Mar-22 18:12
Member 1252773510-Mar-22 18:12 
AnswerRe: IPv6 address compression code using vc++ Pin
Victor Nijegorodov10-Mar-22 22:06
Victor Nijegorodov10-Mar-22 22:06 
QuestionQuestions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow10-Mar-22 7:02
ForNow10-Mar-22 7:02 
Hi

I have few questions about the above two items first for the EDITWORDBREAKPROCA if my edit control is part of CRicheditCtrl does the callback proc have to be a member of the Cricheditctrl
or can it be like my STEAMIN function

if the callback is a class member how would you code the sendmessage when I code CrichEditctrl->Sendmessage(EM_SETWORDBREAKPROC,0,(LPARAM) &CStroage::editworbreak) I get complier messages saying invalid type conversion

Next do I need a message map entry for EM_EDITWORDPBREAKPROC such as ON_MESSAGE(EM_EDITWORDBREAKPROC,&CStroage::editwordbreak) if so there is a problem with this because the ON_MESSAGE takes a LRESULT MEMBERX (wparam, lparam) not the paraamter of the call back

in the Call back if I want to line break 0n 0x0a0d

then the code would be the following the doc is not that stright forward thanks in advance for anyone who helps me clarify

C++
switch (code)
	{

	case WB_ISDELIMITER:

		

		if (lpszEditText[ichCurrent] == 0x0a0d)
			return TRUE;
		else
			return FALSE;

		break;

AnswerRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
RedDk10-Mar-22 9:22
RedDk10-Mar-22 9:22 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow10-Mar-22 10:35
ForNow10-Mar-22 10:35 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
RedDk10-Mar-22 10:40
RedDk10-Mar-22 10:40 
AnswerRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan10-Mar-22 23:19
mveRichard MacCutchan10-Mar-22 23:19 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 2:41
ForNow11-Mar-22 2:41 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 2:51
mveRichard MacCutchan11-Mar-22 2:51 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 3:13
ForNow11-Mar-22 3:13 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 4:49
mveRichard MacCutchan11-Mar-22 4:49 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 5:08
ForNow11-Mar-22 5:08 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 5:19
mveRichard MacCutchan11-Mar-22 5:19 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 5:46
ForNow11-Mar-22 5:46 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 5:54
mveRichard MacCutchan11-Mar-22 5:54 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 6:06
ForNow11-Mar-22 6:06 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 7:11
mveRichard MacCutchan11-Mar-22 7:11 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 8:56
ForNow11-Mar-22 8:56 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Randor 11-Mar-22 13:55
professional Randor 11-Mar-22 13:55 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 23:03
mveRichard MacCutchan11-Mar-22 23:03 

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.