Click here to Skip to main content
16,011,680 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Horizontal & vertical print page Pin
basementman4-Mar-04 5:48
basementman4-Mar-04 5:48 
GeneralRe: Horizontal & vertical print page Pin
Robert A. T. Káldy5-Mar-04 0:15
Robert A. T. Káldy5-Mar-04 0:15 
QuestionMFC: How to move between Edit Controls with the arrow keys? Pin
Davex_4-Mar-04 4:35
Davex_4-Mar-04 4:35 
AnswerRe: MFC: How to move between Edit Controls with the arrow keys? Pin
Roger Stewart4-Mar-04 5:17
professionalRoger Stewart4-Mar-04 5:17 
AnswerRe: MFC: How to move between Edit Controls with the arrow keys? Pin
2249174-Mar-04 5:21
2249174-Mar-04 5:21 
AnswerRe: MFC: How to move between Edit Controls with the arrow keys? Pin
Steve S4-Mar-04 5:55
Steve S4-Mar-04 5:55 
GeneralRe: MFC: How to move between Edit Controls with the arrow keys? Pin
Davex_4-Mar-04 6:10
Davex_4-Mar-04 6:10 
GeneralRe: MFC: How to move between Edit Controls with the arrow keys? Pin
Roger Allen4-Mar-04 6:44
Roger Allen4-Mar-04 6:44 
You may be able to do it by overriding the controlling windows PreTranslateMessage function and putting in this code:

if (pMsg->message == WM_KEYDOWN)
{
	CWnd *pWnd = GetFocus();
	if (pWnd)
	{
		if (pWnd->IsKindOf(RUNTIME_CLASS(CEdit)))
		{
			switch (wParam)
			{
			case VK_UP:
				pWnd = pWnd->GetNextWindow(GW_HWNDPREV);
				if (pWnd)
					pWnd->SetFocus();
				return TRUE;
			case VK_DOWN:
				pWnd = pWnd->GetNextWindow(GW_HWNDNEXT);
				if (pWnd)
					pWnd->SetFocus();
				return TRUE;
			}
		}
	}
}
// call the base class here

I just threw this code together after a quick scan of the MSDN. It may work as required.


Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
General.open(); Pin
Anonymous3-Mar-04 18:07
Anonymous3-Mar-04 18:07 
GeneralRe: .open(); Pin
Roger Allen4-Mar-04 6:46
Roger Allen4-Mar-04 6:46 
GeneralRe: Reading ID3 Tags from .MP3 files Pin
Prakash Nadar3-Mar-04 17:28
Prakash Nadar3-Mar-04 17:28 
GeneralRe: Reading ID3 Tags from .MP3 files Pin
Christian Graus3-Mar-04 17:29
protectorChristian Graus3-Mar-04 17:29 
GeneralRe: Reading ID3 Tags from .MP3 files Pin
Prakash Nadar3-Mar-04 17:51
Prakash Nadar3-Mar-04 17:51 
GeneralBoost Regex++ Pin
monrobot133-Mar-04 16:55
monrobot133-Mar-04 16:55 
GeneralRe: Boost Regex++ Pin
Christian Graus3-Mar-04 17:32
protectorChristian Graus3-Mar-04 17:32 
GeneralRe: Boost Regex++ Pin
monrobot134-Mar-04 4:57
monrobot134-Mar-04 4:57 
GeneralRe: Boost Regex++ Pin
Christian Graus4-Mar-04 9:24
protectorChristian Graus4-Mar-04 9:24 
GeneralRe: Boost Regex++ Pin
monrobot134-Mar-04 20:21
monrobot134-Mar-04 20:21 
GeneralRe: Boost Regex++ Pin
Nemanja Trifunovic4-Mar-04 9:44
Nemanja Trifunovic4-Mar-04 9:44 
QuestionHow to embed Acrobat Reader in a MFC program Pin
super-kingkong3-Mar-04 15:09
super-kingkong3-Mar-04 15:09 
AnswerRe: How to embed Acrobat Reader in a MFC program Pin
Trollslayer4-Mar-04 5:31
mentorTrollslayer4-Mar-04 5:31 
GeneralRe: How to embed Acrobat Reader in a MFC program Pin
tankhoasp4-Mar-04 5:43
tankhoasp4-Mar-04 5:43 
GeneralRe: How to embed Acrobat Reader in a MFC program Pin
Trollslayer4-Mar-04 7:58
mentorTrollslayer4-Mar-04 7:58 
GeneralRe: How to embed Acrobat Reader in a MFC program Pin
super-kingkong4-Mar-04 15:42
super-kingkong4-Mar-04 15:42 
GeneralRe: How to embed Acrobat Reader in a MFC program Pin
Trollslayer4-Mar-04 22:28
mentorTrollslayer4-Mar-04 22:28 

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.