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

C / C++ / MFC

 
GeneralRe: Keeping track of control width (?) Pin
Anonymous8-Oct-02 8:58
Anonymous8-Oct-02 8:58 
GeneralRe: Keeping track of control width (?) Pin
Roger Allen9-Oct-02 1:48
Roger Allen9-Oct-02 1:48 
GeneralRe: Keeping track of control width Pin
BlackSmith8-Oct-02 9:35
BlackSmith8-Oct-02 9:35 
GeneralRe: Keeping track of control width Pin
Anonymous8-Oct-02 9:54
Anonymous8-Oct-02 9:54 
GeneralRe: Keeping track of control width Pin
8-Oct-02 10:20
suss8-Oct-02 10:20 
Generalfrozen combobox Pin
ns8-Oct-02 8:01
ns8-Oct-02 8:01 
GeneralRe: frozen combobox Pin
ns8-Oct-02 8:05
ns8-Oct-02 8:05 
GeneralRe: frozen combobox Pin
Roger Allen9-Oct-02 1:53
Roger Allen9-Oct-02 1:53 
Its probably due to the if(pMsg->) else condition. you should just miss this section out of the function.

BOOL CCombobox1View::PreTranslateMessage(MSG* pMsg)
{
       CString s;
	if   ( pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN )
	{
		if 	(GetFocus() ==& m_combo1)
  		{
			m_combo1.GetWindowText(s);
			m_combo1.InsertString(0,s);
			m_combo1.SetWindowText("");
			m_combo1.SetFocus();
		//	EndDialog(IDOK);									return FALSE;
 		}
		else
		{
		}
	}
	return CFormView::PreTranslateMessage(pMsg);
}



Roger Allen
Sonork 100.10016

I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.
GeneralRe: frozen combobox Pin
Bartosz Bien10-Oct-02 11:31
Bartosz Bien10-Oct-02 11:31 
QuestionHow do I fix this? Pin
ns8-Oct-02 7:47
ns8-Oct-02 7:47 
AnswerRe: How do I fix this? Pin
Chris Losinger8-Oct-02 7:55
professionalChris Losinger8-Oct-02 7:55 
GeneralRe: How do I fix this? Pin
ns8-Oct-02 8:02
ns8-Oct-02 8:02 
AnswerRe: How do I fix this? Pin
mariuszpopiolek8-Oct-02 8:02
mariuszpopiolek8-Oct-02 8:02 
GeneralRe: How do I fix this? Pin
ns8-Oct-02 8:08
ns8-Oct-02 8:08 
GeneralRe: How do I fix this? Pin
mariuszpopiolek8-Oct-02 8:15
mariuszpopiolek8-Oct-02 8:15 
GeneralRe: How do I fix this? Pin
ns8-Oct-02 8:21
ns8-Oct-02 8:21 
GeneralRe: How do I fix this? Pin
mariuszpopiolek8-Oct-02 8:42
mariuszpopiolek8-Oct-02 8:42 
GeneralRe: How do I fix this? Pin
ns8-Oct-02 9:12
ns8-Oct-02 9:12 
GeneralRe: How do I fix this? Pin
mariuszpopiolek8-Oct-02 10:04
mariuszpopiolek8-Oct-02 10:04 
GeneralRe: How do I fix this? Pin
l a u r e n8-Oct-02 13:42
l a u r e n8-Oct-02 13:42 
AnswerRe: How do I fix this? Pin
Roger Allen9-Oct-02 1:56
Roger Allen9-Oct-02 1:56 
Generalgreat! Thanks! Pin
ns9-Oct-02 2:53
ns9-Oct-02 2:53 
GeneralControl Panel Pin
Anonymous8-Oct-02 7:14
Anonymous8-Oct-02 7:14 
GeneralRe: Control Panel Pin
Michael P Butler8-Oct-02 7:56
Michael P Butler8-Oct-02 7:56 
GeneralRe: Control Panel Pin
Anonymous8-Oct-02 10:19
Anonymous8-Oct-02 10:19 

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.