Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CWNumEdit disappears on ESC when used in CFormView. Is a workaround available

Hallo

CWNumEdit disappears on ESC when used in CFormView (MFC).  This is fixed in Measurement Studio 7.x.

Is there a workaround or a fix available for Measurement Studio 6.0.

Please let me know.

Thanks
Charles
0 Kudos
Message 1 of 3
(5,647 Views)
hello charles,

i am sorry, but i guess there is no workaround for this behaviour.

regards,

robert h
NI germany
0 Kudos
Message 2 of 3
(5,638 Views)
Hello,

i experimented a little and it shows, that PreTranslateMessage is my friend.

Here is a code fragment:

BOOL CMyFormView::PreTranslateMessage(MSG* pMsg)
{
    // this one lets disappear the NI-control
    if( pMsg->message==WM_KEYDOWN && pMsg->wParam==VK_ESCAPE )
    {
        return TRUE;
    }
    
    // normal behavior 
    return CFormView::PreTranslateMessage(pMsg);
}


Regards,

Charles
0 Kudos
Message 3 of 3
(5,635 Views)