Thanks in advance,
Guille
if ( Msg.wParam == VK_TAB || Msg.wParam == VK_ENTER) {
Result = (UINT)Default();
Result |= DLGC_WANTALLKEYS;
}
else
Result = (UINT)Default();
return Result;
Ted.
"Guillermo Prandi" <gp-msdn-newsgroups@mailfilter_nospppam_.com.ar> wrote in
message news:3c3201c2f3a9$86faef50$a501...@phx.gbl...
Msg = *(MSG *)LParam;
Ted.
"Ted" <T...@t--x.org> wrote in message
news:eBCFO098...@TK2MSFTNGP10.phx.gbl...
Guille
>.
>
e.g.
const MSG* pMsg = GetCurrentMessage();
MSG msg = *((MSG *)pMsg->lParam);
Crazy stuff, getting a message from an lparam from a message,
Ted.
"Guillermo Prandi" <gp-msdn-newsgroups@mailfilter_nospppam_.com.ar> wrote in
message news:3f9601c2f3e0$5c2aae00$a301...@phx.gbl...
Guille
>-----Original Message-----
>you can always get the LParam value by calling
CWnd::GetCurrentMessage from
>OnGetDlgCode,
>
>e.g.
>
>const MSG* pMsg = GetCurrentMessage();
>
>MSG msg = *((MSG *)pMsg->lParam);
>
>Crazy stuff, getting a message from an lparam from a
message,
>
>Ted.
>
>.
>
UINT CUniEdit::OnGetDlgCode()
{
const MSG *pMsg = GetCurrentMessage();
pMsg = ((const MSG *)pMsg->lParam);
if( pMsg != NULL )
{
if( pMsg->message == WM_KEYDOWN )
{
if( pMsg->wParam == VK_ESCAPE ) return 0;
}
}
return DLGC_WANTALLKEYS | DLGC_WANTARROWS |
DLGC_WANTTAB | DLGC_HASSETSEL | DLGC_WANTCHARS;
}
Thanks a lot, Ted.
Guille
>-----Original Message-----
>you can always get the LParam value by calling
CWnd::GetCurrentMessage from
>OnGetDlgCode,
>
>e.g.
>
>const MSG* pMsg = GetCurrentMessage();
>
>MSG msg = *((MSG *)pMsg->lParam);
>
>Crazy stuff, getting a message from an lparam from a
message,
>
>Ted.
>
>.
>