Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: The application has failed to start because its side-by-side configuration is incorrect Pin
rp_suman6-Jun-08 20:07
rp_suman6-Jun-08 20:07 
GeneralRe: The application has failed to start because its side-by-side configuration is incorrect Pin
ShilpiP6-Jun-08 21:09
ShilpiP6-Jun-08 21:09 
GeneralRe: The application has failed to start because its side-by-side configuration is incorrect Pin
rp_suman6-Jun-08 21:47
rp_suman6-Jun-08 21:47 
QuestionList of Nationality in VC++ Pin
rp_suman6-Jun-08 19:03
rp_suman6-Jun-08 19:03 
AnswerRe: List of Nationality in VC++ Pin
ShilpiP6-Jun-08 19:23
ShilpiP6-Jun-08 19:23 
AnswerRe: List of Nationality in VC++ Pin
sudhir_Kumar6-Jun-08 21:29
sudhir_Kumar6-Jun-08 21:29 
QuestionTabstop with Enter Key? Pin
Le@rner6-Jun-08 18:29
Le@rner6-Jun-08 18:29 
AnswerRe: Tabstop with Enter Key? Pin
Jijo.Raj6-Jun-08 22:25
Jijo.Raj6-Jun-08 22:25 
One simple method is to get the controlId from pMsg->hwnd by using GetDlgCtrlID() and check whether its that of your button control. See the code snippet rewritten for you. Roll eyes | :rolleyes:

BOOL CDlg::PreTranslateMessage(MSG* pMsg) 
{
    if (pMsg->message == WM_KEYDOWN && (pMsg->wParam == VK_RETURN))
    {
        // Get dialog item id.
        UINT CtrlID = ::GetDlgCtrlID( pMsg->hwnd );

        // Check whether its that of your button.
        if( CtrlID != IDC_BUTTON1 &&
            CtrlID != IDC_BUTTON2 )
        {
            // If not modify VK_RETURN as VK_TAB.
            pMsg->wParam = VK_TAB;
        }
    }
	
	return CDialog::PreTranslateMessage(pMsg);
}


_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

GeneralRe: Tabstop with Enter Key? Pin
Le@rner6-Jun-08 23:09
Le@rner6-Jun-08 23:09 
GeneralRe: Tabstop with Enter Key? Pin
Jijo.Raj7-Jun-08 1:25
Jijo.Raj7-Jun-08 1:25 
GeneralRe: Tabstop with Enter Key? Pin
Le@rner7-Jun-08 1:52
Le@rner7-Jun-08 1:52 
QuestionDate in VC++ Pin
rp_suman6-Jun-08 18:25
rp_suman6-Jun-08 18:25 
AnswerRe: Date in VC++ Pin
Le@rner6-Jun-08 18:40
Le@rner6-Jun-08 18:40 
GeneralRe: Date in VC++ Pin
rp_suman6-Jun-08 18:58
rp_suman6-Jun-08 18:58 
GeneralRe: Date in VC++ Pin
Le@rner6-Jun-08 19:04
Le@rner6-Jun-08 19:04 
QuestionTD matrix Pin
sofia_1116-Jun-08 11:42
sofia_1116-Jun-08 11:42 
AnswerRe: TD matrix Pin
CPallini6-Jun-08 12:13
mveCPallini6-Jun-08 12:13 
AnswerRe: TD matrix Pin
sudhir_Kumar6-Jun-08 21:24
sudhir_Kumar6-Jun-08 21:24 
QuestionLoadResource LockResource RT_RCDATA memory lifetime Pin
bob169726-Jun-08 10:50
bob169726-Jun-08 10:50 
AnswerRe: LoadResource LockResource RT_RCDATA memory lifetime Pin
Garth J Lancaster6-Jun-08 22:48
professionalGarth J Lancaster6-Jun-08 22:48 
GeneralRe: LoadResource LockResource RT_RCDATA memory lifetime Pin
bob169727-Jun-08 6:44
bob169727-Jun-08 6:44 
GeneralRe: LoadResource LockResource RT_RCDATA memory lifetime Pin
bob169727-Jun-08 6:51
bob169727-Jun-08 6:51 
Questionisdigit () function Pin
sofia_1116-Jun-08 10:00
sofia_1116-Jun-08 10:00 
AnswerRe: isdigit () function Pin
CPallini6-Jun-08 10:16
mveCPallini6-Jun-08 10:16 
GeneralRe: isdigit () function Pin
Nemanja Trifunovic6-Jun-08 10:40
Nemanja Trifunovic6-Jun-08 10:40 

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.