Click here to Skip to main content
15,892,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: file creation issue on windows7 Pin
David Crow17-Aug-10 7:14
David Crow17-Aug-10 7:14 
AnswerRe: file creation issue on windows7 Pin
«_Superman_»17-Aug-10 19:08
professional«_Superman_»17-Aug-10 19:08 
GeneralRe: file creation issue on windows7 Pin
MKC00217-Aug-10 22:54
MKC00217-Aug-10 22:54 
QuestionVisual Studio 2010 dog slow Pin
Leif Goodwin17-Aug-10 4:23
Leif Goodwin17-Aug-10 4:23 
GeneralRe: Visual Studio 2010 dog slow Pin
David Crow17-Aug-10 5:51
David Crow17-Aug-10 5:51 
GeneralRe: Visual Studio 2010 dog slow Pin
Leif Goodwin17-Aug-10 5:52
Leif Goodwin17-Aug-10 5:52 
Questionhow to avoid context menu for activex control Pin
MKC00217-Aug-10 2:09
MKC00217-Aug-10 2:09 
AnswerRe: how to avoid context menu for activex control Pin
Cool_Dev17-Aug-10 2:47
Cool_Dev17-Aug-10 2:47 
check whether activex control exposes any functions to suppress menus.

If not, override PreTranslateMessage() function for your parent window, and simply do return for the messages that generates menus on ativex control

for eg, for Mouse right button click/double click:
BOOL CMyDlg::PreTranslateMessage(MSG* pMsg) 
{
	if(pMsg->message == WM_RBUTTONDOWN || pMsg->message == WM_RBUTTONDBLCLK)
		return TRUE;
	
	return CDialog::PreTranslateMessage(pMsg);
}


you may do further filtering by checking pMsg->pt or pMsg->hwnd members also.
GeneralRe: how to avoid context menu for activex control Pin
MKC00227-Aug-10 1:07
MKC00227-Aug-10 1:07 
GeneralRe: how to avoid context menu for activex control Pin
Cool_Dev27-Aug-10 2:57
Cool_Dev27-Aug-10 2:57 
Questionallocate and lock memory Pin
AmbiguousName17-Aug-10 0:30
AmbiguousName17-Aug-10 0:30 
AnswerRe: allocate and lock memory Pin
Moak17-Aug-10 0:36
Moak17-Aug-10 0:36 
AnswerRe: allocate and lock memory Pin
Maximilien17-Aug-10 0:54
Maximilien17-Aug-10 0:54 
AnswerRe: allocate and lock memory PinPopular
Aescleal17-Aug-10 1:19
Aescleal17-Aug-10 1:19 
AnswerRe: allocate and lock memory Pin
«_Superman_»17-Aug-10 19:23
professional«_Superman_»17-Aug-10 19:23 
QuestionFillRect C++ Pin
arthur89kim17-Aug-10 0:18
arthur89kim17-Aug-10 0:18 
AnswerRe: FillRect C++ PinPopular
Richard MacCutchan17-Aug-10 0:44
mveRichard MacCutchan17-Aug-10 0:44 
GeneralRe: FillRect C++ Pin
malcombold10-Sep-10 23:14
malcombold10-Sep-10 23:14 
GeneralRe: FillRect C++ Pin
Richard MacCutchan11-Sep-10 1:33
mveRichard MacCutchan11-Sep-10 1:33 
AnswerRe: FillRect C++ Pin
Eugen Podsypalnikov17-Aug-10 3:15
Eugen Podsypalnikov17-Aug-10 3:15 
QuestionResizing controls in CFormview Pin
Sakhalean16-Aug-10 23:23
Sakhalean16-Aug-10 23:23 
AnswerRe: Resizing controls in CFormview Pin
Nuri Ismail16-Aug-10 23:33
Nuri Ismail16-Aug-10 23:33 
AnswerRe: Resizing controls in CFormview Pin
Le@rner17-Aug-10 1:09
Le@rner17-Aug-10 1:09 
QuestionClass Templates and MFC Pin
Rajeswari, T.16-Aug-10 23:19
Rajeswari, T.16-Aug-10 23:19 
AnswerRe: Class Templates and MFC Pin
Nuri Ismail16-Aug-10 23:28
Nuri Ismail16-Aug-10 23:28 

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.