Click here to Skip to main content
15,921,716 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I retrieve a system small icon? Pin
AmarB9-Apr-02 7:59
AmarB9-Apr-02 7:59 
AnswerRe: How can I retrieve a system small icon? Pin
lszyn10-May-02 16:23
lszyn10-May-02 16:23 
Generalpointers to members functions Pin
Carlos Sánchez García9-Apr-02 3:03
Carlos Sánchez García9-Apr-02 3:03 
GeneralRe: pointers to members functions Pin
NormDroid9-Apr-02 3:16
professionalNormDroid9-Apr-02 3:16 
GeneralRe: pointers to members functions Pin
NormDroid9-Apr-02 22:26
professionalNormDroid9-Apr-02 22:26 
GeneralRe: pointers to members functions Pin
Alexandru Savescu9-Apr-02 3:18
Alexandru Savescu9-Apr-02 3:18 
Generaltabing through cedit controls Pin
jafrazee9-Apr-02 2:39
jafrazee9-Apr-02 2:39 
GeneralRe: tabing through cedit controls Pin
Roger Allen9-Apr-02 2:58
Roger Allen9-Apr-02 2:58 
Yes there is. Override your PreTranslateMessage function as follows:

BOOL CMyDialog::PreTranslateMessage(MSG* pMsg) 
{
	if (pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN)
		{
		CWnd *pWnd = GetFocus() ;

		if (pWnd != NULL)
			{
			CEdit *pEdit = static_cast<CEdit*>(pWnd) ; // returns NULL if its not a CEdit* control
			if (pEdit)
				{
				// convert the VK_RETURN to a VK_TAB for edit controls
				pMsg->wParam = VK_TAB ;
				}
			}
		}
	return CDialog::PreTranslateMessage(pMsg); // or correct base class
}


This converts all return presses to tabs so that it should tab from control ro control instead.



Roger Allen
Sonork 100.10016

If I'm not breathing, I'm either dead or holding my breath.
A fool jabbers, while a wise man listens. But is he so wise to listen to the fool?
GeneralRe: tabing through cedit controls Pin
Roger Allen9-Apr-02 2:59
Roger Allen9-Apr-02 2:59 
GeneralRe: tabing through cedit controls Pin
jafrazee9-Apr-02 8:48
jafrazee9-Apr-02 8:48 
GeneralCombobox Problem Pin
TommyKnocker9-Apr-02 2:04
TommyKnocker9-Apr-02 2:04 
GeneralRe: Combobox Problem Pin
Niklas L9-Apr-02 2:19
Niklas L9-Apr-02 2:19 
GeneralRe: Combobox Problem Pin
TommyKnocker9-Apr-02 2:31
TommyKnocker9-Apr-02 2:31 
GeneralRe: Combobox Problem Pin
Niklas L9-Apr-02 2:53
Niklas L9-Apr-02 2:53 
Questioncompiling a dll for a vb app? Pin
markmyb9-Apr-02 0:35
markmyb9-Apr-02 0:35 
AnswerRe: compiling a dll for a vb app? Pin
l a u r e n9-Apr-02 0:45
l a u r e n9-Apr-02 0:45 
GeneralRe: compiling a dll for a vb app? Pin
markmyb9-Apr-02 0:55
markmyb9-Apr-02 0:55 
GeneralRe: compiling a dll for a vb app? Pin
l a u r e n9-Apr-02 1:03
l a u r e n9-Apr-02 1:03 
GeneralRe: compiling a dll for a vb app? Pin
markmyb9-Apr-02 1:09
markmyb9-Apr-02 1:09 
GeneralRe: compiling a dll for a vb app? Pin
l a u r e n9-Apr-02 1:16
l a u r e n9-Apr-02 1:16 
GeneralRe: compiling a dll for a vb app? Pin
markmyb9-Apr-02 2:06
markmyb9-Apr-02 2:06 
GeneralMsXML clone XMLDomDocument Pin
Braulio Dez9-Apr-02 0:24
Braulio Dez9-Apr-02 0:24 
GeneralRe: MsXML clone XMLDomDocument Pin
Christian Graus9-Apr-02 1:16
protectorChristian Graus9-Apr-02 1:16 
GeneralRe: MsXML clone XMLDomDocument Pin
Braulio Dez9-Apr-02 2:41
Braulio Dez9-Apr-02 2:41 
QuestionHow to send a byte to a hardware port in VC++ Pin
tuantin29-Apr-02 0:05
tuantin29-Apr-02 0:05 

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.