Click here to Skip to main content
15,901,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to validate a file path Pin
Danzy8317-Aug-10 10:55
Danzy8317-Aug-10 10:55 
GeneralRe: How to validate a file path Pin
Niklas L17-Aug-10 11:19
Niklas L17-Aug-10 11:19 
GeneralRe: How to validate a file path Pin
Danzy8317-Aug-10 11:24
Danzy8317-Aug-10 11:24 
AnswerRe: How to validate a file path Pin
Luc Pattyn17-Aug-10 11:25
sitebuilderLuc Pattyn17-Aug-10 11:25 
GeneralRe: How to validate a file path Pin
Niklas L17-Aug-10 11:40
Niklas L17-Aug-10 11:40 
GeneralRe: How to validate a file path Pin
Luc Pattyn17-Aug-10 11:46
sitebuilderLuc Pattyn17-Aug-10 11:46 
AnswerRe: How to validate a file path Pin
Garth J Lancaster17-Aug-10 12:48
professionalGarth J Lancaster17-Aug-10 12:48 
AnswerRe: How to validate a file path Pin
David Crow17-Aug-10 16:33
David Crow17-Aug-10 16:33 
QuestionCtree Recycle bin Pin
mdocvc17-Aug-10 8:56
mdocvc17-Aug-10 8:56 
QuestionRe: Ctree Recycle bin Pin
David Crow17-Aug-10 9:44
David Crow17-Aug-10 9:44 
AnswerRe: Ctree Recycle bin Pin
Niklas L17-Aug-10 10:54
Niklas L17-Aug-10 10:54 
AnswerRe: Ctree Recycle bin Pin
«_Superman_»17-Aug-10 19:17
professional«_Superman_»17-Aug-10 19:17 
Questionfile creation issue on windows7 Pin
MKC00217-Aug-10 5:52
MKC00217-Aug-10 5:52 
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 

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.