Click here to Skip to main content
15,886,714 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOnLButtonDown process Pin
Llasus15-Apr-08 21:23
Llasus15-Apr-08 21:23 
QuestionRe: OnLButtonDown process Pin
CPallini15-Apr-08 21:54
mveCPallini15-Apr-08 21:54 
GeneralRe: OnLButtonDown process Pin
Llasus15-Apr-08 22:04
Llasus15-Apr-08 22:04 
GeneralRe: OnLButtonDown process Pin
CPallini15-Apr-08 22:28
mveCPallini15-Apr-08 22:28 
GeneralRe: OnLButtonDown process Pin
Llasus15-Apr-08 22:42
Llasus15-Apr-08 22:42 
QuestionRe: OnLButtonDown process Pin
David Crow16-Apr-08 3:25
David Crow16-Apr-08 3:25 
GeneralRe: OnLButtonDown process Pin
Llasus16-Apr-08 13:07
Llasus16-Apr-08 13:07 
GeneralRe: OnLButtonDown process Pin
Naveen15-Apr-08 21:54
Naveen15-Apr-08 21:54 
Llasus wrote:
would there be any other functions I can use to achieve what I am trying to do?


overide the PreTranslateMessage function in the dialog class and check for the WM_LBUTTONDOWN message.


BOOL CMyDlg::PreTranslateMessage(MSG* pMsg)<br />
{<br />
    if( pMsg->message == WM_LBUTTONDOWN )<br />
    {<br />
        if( pMsg->hwnd != m_hWnd )// ignore the message if user has clicked on the dialog<br />
        {<br />
            // Do the processing<br />
        }<br />
    }<br />
    return CDialog::PreTranslateMessage( pMsg );<br />
}



GeneralRe: OnLButtonDown process Pin
Llasus15-Apr-08 22:11
Llasus15-Apr-08 22:11 
GeneralRe: OnLButtonDown process Pin
Force Code15-Apr-08 23:45
Force Code15-Apr-08 23:45 
GeneralRe: OnLButtonDown process Pin
Force Code15-Apr-08 23:49
Force Code15-Apr-08 23:49 
GeneralRe: OnLButtonDown process Pin
Force Code16-Apr-08 0:31
Force Code16-Apr-08 0:31 
GeneralRe: OnLButtonDown process Pin
Hamid_RT16-Apr-08 0:50
Hamid_RT16-Apr-08 0:50 
GeneralRe: OnLButtonDown process Pin
Llasus16-Apr-08 13:16
Llasus16-Apr-08 13:16 
QuestionHow to check the admin/user previleges in Vista and XP Pin
Jiju_b15-Apr-08 21:22
Jiju_b15-Apr-08 21:22 
AnswerRe: How to check the admin/user previleges in Vista and XP Pin
Jijo.Raj15-Apr-08 22:40
Jijo.Raj15-Apr-08 22:40 
AnswerRe: How to check the admin/user previleges in Vista and XP Pin
Rajesh R Subramanian15-Apr-08 22:57
professionalRajesh R Subramanian15-Apr-08 22:57 
GeneralOpening of a file Pin
FPeeters15-Apr-08 20:40
FPeeters15-Apr-08 20:40 
GeneralRe: Opening of a file Pin
MANISH RASTOGI15-Apr-08 20:57
MANISH RASTOGI15-Apr-08 20:57 
GeneralRe: Opening of a file Pin
FPeeters15-Apr-08 20:59
FPeeters15-Apr-08 20:59 
GeneralRe: Opening of a file Pin
Hamid_RT16-Apr-08 0:48
Hamid_RT16-Apr-08 0:48 
Generalavoid resource duplication Pin
Max++15-Apr-08 20:18
Max++15-Apr-08 20:18 
GeneralRe: avoid resource duplication Pin
Cedric Moonen15-Apr-08 20:35
Cedric Moonen15-Apr-08 20:35 
GeneralRe: avoid resource duplication Pin
Max++15-Apr-08 21:26
Max++15-Apr-08 21:26 
GeneralRe: avoid resource duplication Pin
Cedric Moonen15-Apr-08 22:00
Cedric Moonen15-Apr-08 22:00 

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.