Click here to Skip to main content
15,904,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about IActiveDesktop Pin
Anonymous26-Aug-04 19:24
Anonymous26-Aug-04 19:24 
GeneralRe: about IActiveDesktop Pin
yingkou26-Aug-04 20:22
yingkou26-Aug-04 20:22 
GeneralRe: about IActiveDesktop Pin
Anonymous26-Aug-04 21:11
Anonymous26-Aug-04 21:11 
GeneralRe: about IActiveDesktop Pin
Anonymous26-Aug-04 21:30
Anonymous26-Aug-04 21:30 
GeneralRe: about IActiveDesktop Pin
yingkou26-Aug-04 22:22
yingkou26-Aug-04 22:22 
GeneralRe: about IActiveDesktop Pin
David Crow27-Aug-04 9:22
David Crow27-Aug-04 9:22 
GeneralRe: about IActiveDesktop Pin
yingkou27-Aug-04 14:11
yingkou27-Aug-04 14:11 
GeneralRe: about IActiveDesktop Pin
David Crow28-Aug-04 17:27
David Crow28-Aug-04 17:27 
GeneralRe: about IActiveDesktop Pin
yingkou29-Aug-04 3:14
yingkou29-Aug-04 3:14 
GeneralHLOCAL -- Local Memory alloc/dealloc Pin
0v3rloader26-Aug-04 14:45
0v3rloader26-Aug-04 14:45 
GeneralRe: HLOCAL -- Local Memory alloc/dealloc Pin
David Crow27-Aug-04 2:24
David Crow27-Aug-04 2:24 
Generalusing #define to determine #include Pin
AssemblySoft26-Aug-04 14:37
AssemblySoft26-Aug-04 14:37 
GeneralRe: using #define to determine #include Pin
Christian Graus26-Aug-04 16:04
protectorChristian Graus26-Aug-04 16:04 
GeneralRe: using #define to determine #include Pin
AssemblySoft27-Aug-04 1:27
AssemblySoft27-Aug-04 1:27 
GeneralRe: using #define to determine #include Pin
David Crow27-Aug-04 2:27
David Crow27-Aug-04 2:27 
GeneralRe: using #define to determine #include Pin
AssemblySoft27-Aug-04 8:46
AssemblySoft27-Aug-04 8:46 
GeneralRe: using #define to determine #include Pin
David Crow27-Aug-04 9:13
David Crow27-Aug-04 9:13 
GeneralRe: using #define to determine #include Pin
AssemblySoft29-Aug-04 12:29
AssemblySoft29-Aug-04 12:29 
GeneralRe: using #define to determine #include Pin
AssemblySoft27-Aug-04 8:50
AssemblySoft27-Aug-04 8:50 
GeneralRe: using #define to determine #include Pin
rotu27-Aug-04 0:07
rotu27-Aug-04 0:07 
GeneralRe: using #define to determine #include Pin
AssemblySoft27-Aug-04 1:26
AssemblySoft27-Aug-04 1:26 
GeneralRe: using #define to determine #include Pin
GKarRacer27-Aug-04 10:44
GKarRacer27-Aug-04 10:44 
GeneralRe: using #define to determine #include Pin
AssemblySoft29-Aug-04 12:29
AssemblySoft29-Aug-04 12:29 
GeneralRe: using #define to determine #include Pin
GKarRacer31-Aug-04 7:40
GKarRacer31-Aug-04 7:40 
Generalpretranslatemessageoverride Pin
prateekkathuria26-Aug-04 10:27
prateekkathuria26-Aug-04 10:27 
Hi,
i have an application that creates controls on the fly on a dialog. Say a button and a combo box. I wan to handle the events in the pretranslate message of the parent(dialog in my case)so what i do is override the mydialog::PreTranslateMessage(MSG *pMsg) as below:


if(pMsg->message==WM_KEYDOWN)
{
if(pMsg->wParam==VK_RETURN)
{ pMsg->wParam=VK_TAB;
AfxMessageBox(_T("return was pressed"));
}
else
{
AfxMessageBox(_T("some key was pressed"));

}

}
else if(pMsg->message==WM_COMMAND)
{
if(HIWORD(pMsg->wParam) == BN_CLICKED)
{
CString Tmp = _T("Button Clicked was :");
Tmp.Format(_T("%s%d"),Tmp , LOWORD(wParam) ) ;
AfxMessageBox(Tmp);
}
else if (HIWORD(pMsg->wParam) == CBN_SELCHANGE)
{
CString Tmp = _T("Button Clicked was :");
Tmp.Format(_T("%s%d"),Tmp , LOWORD(wParam) ) ;
AfxMessageBox(Tmp);

}

}

return CDialog::PreTranslateMessage(pMsg);

}

Now if the child control - a button is clicked which is an object of CButton ( no subclassing done) should nt the dialog recieve a notification and therefore shouldnt the pretranslatemessage be invoked??

Thanks in advance,

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.