Click here to Skip to main content
15,879,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Albert Holguin28-Jun-11 8:24
professionalAlbert Holguin28-Jun-11 8:24 
AnswerSome thread questions Pin
Vaclav_1-Jul-11 3:22
Vaclav_1-Jul-11 3:22 
QuestionProblems with MFC Ribbon edit with spin button Pin
Dansveen27-Jun-11 11:04
Dansveen27-Jun-11 11:04 
QuestionRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin27-Jun-11 15:43
professionalAlbert Holguin27-Jun-11 15:43 
AnswerRe: Problems with MFC Ribbon edit with spin button Pin
Peter_in_278027-Jun-11 16:49
professionalPeter_in_278027-Jun-11 16:49 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Dansveen28-Jun-11 3:28
Dansveen28-Jun-11 3:28 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin28-Jun-11 3:44
professionalAlbert Holguin28-Jun-11 3:44 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Dansveen28-Jun-11 4:03
Dansveen28-Jun-11 4:03 
Hi
Here is my code:
CMFCRibbonEdit *pEdit = DYNAMIC_DOWNCAST(CMFCRibbonEdit, MyApp->GetRibbonElement(ID_RIBBON_FORMAT_WIDTH));
	if(pEdit == NULL)
		return;
	CDrawObj *pObj = (CDrawObj*)m_selection.GetHead();
	if(pObj == NULL){
		ASSERT(0);
		return;
	}
	if(_ttoi(pEdit->GetEditText()) < 1) <==== Here GetEditText() return 1 and not 1,000 I tested with MFCOffice2007Sample and they have the same problem 
		return;
	this->InvalObj(pObj);
	int nDelta = _ttoi(pEdit->GetEditText()) - pObj->m_position.Width();
	if(nDelta < GetDocument()->m_size.cx){
		CRect newPosition = pObj->m_position;
		newPosition.right += nDelta;
		pObj->MoveTo(newPosition);
	}

AnswerRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin28-Jun-11 5:00
professionalAlbert Holguin28-Jun-11 5:00 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Dansveen28-Jun-11 8:44
Dansveen28-Jun-11 8:44 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin28-Jun-11 9:31
professionalAlbert Holguin28-Jun-11 9:31 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Dansveen28-Jun-11 15:17
Dansveen28-Jun-11 15:17 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin29-Jun-11 4:30
professionalAlbert Holguin29-Jun-11 4:30 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Peter_in_278028-Jun-11 15:00
professionalPeter_in_278028-Jun-11 15:00 
QuestionHow to Send/Post Message to a CDocument object? Pin
Odysseas Z27-Jun-11 10:25
Odysseas Z27-Jun-11 10:25 
QuestionRe: How to Send/Post Message to a CDocument object? Pin
David Crow27-Jun-11 10:44
David Crow27-Jun-11 10:44 
AnswerRe: How to Send/Post Message to a CDocument object? Pin
Odysseas Z27-Jun-11 10:59
Odysseas Z27-Jun-11 10:59 
GeneralRe: How to Send/Post Message to a CDocument object? Pin
Richard MacCutchan27-Jun-11 22:17
mveRichard MacCutchan27-Jun-11 22:17 
AnswerRe: How to Send/Post Message to a CDocument object? Pin
Albert Holguin27-Jun-11 11:41
professionalAlbert Holguin27-Jun-11 11:41 
GeneralRe: How to Send/Post Message to a CDocument object? Pin
Vaclav_27-Jun-11 13:44
Vaclav_27-Jun-11 13:44 
GeneralRe: How to Send/Post Message to a CDocument object? Pin
Albert Holguin27-Jun-11 15:15
professionalAlbert Holguin27-Jun-11 15:15 
Questionstandard way to parse command line from a string Pin
Ribhi Kamal27-Jun-11 8:59
professionalRibhi Kamal27-Jun-11 8:59 
AnswerRe: standard way to parse command line from a string [modified] Pin
CPallini27-Jun-11 9:48
mveCPallini27-Jun-11 9:48 
AnswerRe: standard way to parse command line from a string Pin
David Crow27-Jun-11 10:05
David Crow27-Jun-11 10:05 
AnswerRe: standard way to parse command line from a string Pin
Richard MacCutchan27-Jun-11 22:07
mveRichard MacCutchan27-Jun-11 22:07 

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.