Click here to Skip to main content
15,905,414 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading Simplified Chinese String. Pin
sashoalm7-Aug-09 0:14
sashoalm7-Aug-09 0:14 
GeneralRe: Reading Simplified Chinese String. Pin
Adam Roderick J7-Aug-09 0:50
Adam Roderick J7-Aug-09 0:50 
GeneralRe: Reading Simplified Chinese String. Pin
sashoalm7-Aug-09 1:27
sashoalm7-Aug-09 1:27 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder7-Aug-09 1:32
gothic_coder7-Aug-09 1:32 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder7-Aug-09 1:30
gothic_coder7-Aug-09 1:30 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder7-Aug-09 23:18
gothic_coder7-Aug-09 23:18 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder8-Aug-09 2:36
gothic_coder8-Aug-09 2:36 
QuestionCMFCRibbonEdit - how to capture event when user edits it and presses enter? Pin
sashoalm6-Aug-09 21:14
sashoalm6-Aug-09 21:14 
I have a CMFCRibbonComboBox (which is derived from CMFCRibbonEdit), and I've captured the event of the user selecting an item by overriding OnSelectItem. However I don't know how to capture the event of the user typing inside the edit box and pressing enter. I looked at CMFCRibbonEdit::OnKey, but it is not called. Should I place a message-map entry instead? In spyxx the class of the edit box is isn't "EDIT", but "RichEdit20A".

Here's my code so far:

class MyCMFCRibbonComboBox : public CMFCRibbonComboBox
{
public:
	MyCMFCRibbonComboBox(UINT nID, BOOL bHasEditBox = TRUE, int nWidth = -1, LPCTSTR lpszLabel = NULL, int nImage = -1)
		: CMFCRibbonComboBox(nID, bHasEditBox, nWidth, lpszLabel, nImage)
	{

	}
	
	virtual void OnSelectItem(int nItem)
	{
		CMFCRibbonComboBox::OnSelectItem(nItem);

		// DO STUFF
	}

	// CAPTURE KEYBOARD EVENTS???
};


There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

AnswerRe: CMFCRibbonEdit - how to capture event when user edits it and presses enter? Pin
Adam Roderick J7-Aug-09 1:00
Adam Roderick J7-Aug-09 1:00 
GeneralRe: CMFCRibbonEdit - how to capture event when user edits it and presses enter? [modified] Pin
sashoalm7-Aug-09 1:41
sashoalm7-Aug-09 1:41 
GeneralRe: CMFCRibbonEdit - how to capture event when user edits it and presses enter? Pin
Adam Roderick J7-Aug-09 2:26
Adam Roderick J7-Aug-09 2:26 
GeneralRe: CMFCRibbonEdit - how to capture event when user edits it and presses enter? Pin
sashoalm7-Aug-09 2:40
sashoalm7-Aug-09 2:40 
Questionwriting Bitmap data as Binary Into XML file Pin
002comp6-Aug-09 19:06
002comp6-Aug-09 19:06 
AnswerRe: writing Bitmap data as Binary Into XML file Pin
Adam Roderick J6-Aug-09 20:34
Adam Roderick J6-Aug-09 20:34 
GeneralRe: writing Bitmap data as Binary Into XML file Pin
002comp6-Aug-09 21:27
002comp6-Aug-09 21:27 
GeneralRe: writing Bitmap data as Binary Into XML file Pin
CPallini6-Aug-09 21:44
mveCPallini6-Aug-09 21:44 
AnswerRe: writing Bitmap data as Binary Into XML file Pin
Cedric Moonen6-Aug-09 20:53
Cedric Moonen6-Aug-09 20:53 
GeneralRe: writing Bitmap data as Binary Into XML file Pin
002comp6-Aug-09 21:28
002comp6-Aug-09 21:28 
GeneralRe: writing Bitmap data as Binary Into XML file Pin
Cedric Moonen6-Aug-09 21:54
Cedric Moonen6-Aug-09 21:54 
AnswerRe: writing Bitmap data as Binary Into XML file Pin
CPallini6-Aug-09 21:11
mveCPallini6-Aug-09 21:11 
QuestionCan CSocket be used in this way? Pin
includeh106-Aug-09 18:30
includeh106-Aug-09 18:30 
AnswerRe: Can CSocket be used in this way? Pin
«_Superman_»6-Aug-09 18:52
professional«_Superman_»6-Aug-09 18:52 
AnswerRe: Can CSocket be used in this way? Pin
Rajesh R Subramanian6-Aug-09 19:46
professionalRajesh R Subramanian6-Aug-09 19:46 
AnswerRe: Can CSocket be used in this way? Pin
Moak8-Aug-09 8:28
Moak8-Aug-09 8:28 
Questionafter calling GetCurrentBuffer(&lBufferSize,NULL), lBufferSize is minus value. Pin
rambojanggoon6-Aug-09 16:52
rambojanggoon6-Aug-09 16:52 

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.