Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDisable Right Click Context menu!!! Pin
xxhimanshu7-Jul-03 19:58
xxhimanshu7-Jul-03 19:58 
GeneralRe: Disable Right Click Context menu!!! Pin
FlyingDancer7-Jul-03 20:36
FlyingDancer7-Jul-03 20:36 
GeneralRe: Doesnt work!!! Pin
xxhimanshu7-Jul-03 21:23
xxhimanshu7-Jul-03 21:23 
GeneralRe: Disable Right Click Context menu!!! Pin
Rage7-Jul-03 22:49
professionalRage7-Jul-03 22:49 
GeneralRe: Disable Right Click Context menu!!! Pin
xxhimanshu7-Jul-03 23:06
xxhimanshu7-Jul-03 23:06 
GeneralRe: Disable Right Click Context menu!!! Pin
Ryan Binns7-Jul-03 22:53
Ryan Binns7-Jul-03 22:53 
GeneralRe: Disable Right Click Context menu!!! Pin
xxhimanshu7-Jul-03 23:08
xxhimanshu7-Jul-03 23:08 
GeneralRe: Disable Right Click Context menu!!! Pin
Ryan Binns7-Jul-03 23:16
Ryan Binns7-Jul-03 23:16 
1. Create a new window class derived from CWnd (eg. CMyIEWnd), and override OnRButtonDown() and OnRButtonUp(). Leave the two functions empty, ie. They should do nothing.

2. Create an instance of your window class, eg. CMyIEWnd window; or CMyIEWnd *pWnd = new CMyIEWnd;

3. Get a handle to the IE window. I assume you can do this, because I don't know the way your application is structured.

4. Call SubclassWindow on your CMyIEWnd class, passing the handle to the IE window to the SubclassWindow function, eg. window.SubclassWindow(hIEWindowHandle); or pWnd->SubclassWindow(hIEWindowHandle);

5. Override OnDestroy() in your window class (CMyIEWnd) and call UnsubclassWindow(), to unhook your window from the IE window.

Hope this helps,

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: Disable Right Click Context menu!!! Pin
Rage8-Jul-03 0:44
professionalRage8-Jul-03 0:44 
GeneralRe: Disable Right Click Context menu!!! Pin
Ryan Binns8-Jul-03 0:47
Ryan Binns8-Jul-03 0:47 
GeneralRe: Disable Right Click Context menu!!! Pin
Iain Clarke, Warrior Programmer7-Jul-03 23:48
Iain Clarke, Warrior Programmer7-Jul-03 23:48 
GeneralAbout IOCTL_DISK_VERIFY Pin
FlyingDancer7-Jul-03 19:31
FlyingDancer7-Jul-03 19:31 
GeneralRe: About IOCTL_DISK_VERIFY Pin
David Crow8-Jul-03 3:16
David Crow8-Jul-03 3:16 
GeneralRe: About IOCTL_DISK_VERIFY Pin
FlyingDancer8-Jul-03 3:34
FlyingDancer8-Jul-03 3:34 
GeneralRe: About IOCTL_DISK_VERIFY Pin
FlyingDancer8-Jul-03 3:41
FlyingDancer8-Jul-03 3:41 
GeneralRe: About IOCTL_DISK_VERIFY Pin
David Crow8-Jul-03 4:47
David Crow8-Jul-03 4:47 
GeneralWant to get an ActiveX control for displaying picture Pin
Xilin7-Jul-03 18:20
Xilin7-Jul-03 18:20 
QuestionDirectShow ...How do i overlay a bitmap pic over a video source? Pin
Member 4048137-Jul-03 17:36
Member 4048137-Jul-03 17:36 
AnswerRe: DirectShow ...How do i overlay a bitmap pic over a video source? Pin
Andrew Walker7-Jul-03 19:27
Andrew Walker7-Jul-03 19:27 
GeneralManipulating Systray icons Pin
haritadala7-Jul-03 14:15
haritadala7-Jul-03 14:15 
GeneralRe: Manipulating Systray icons Pin
Ryan Binns7-Jul-03 15:45
Ryan Binns7-Jul-03 15:45 
Generalsaving and loading application settings Pin
crapfacejoe7-Jul-03 12:44
crapfacejoe7-Jul-03 12:44 
GeneralRe: saving and loading application settings Pin
valikac7-Jul-03 12:54
valikac7-Jul-03 12:54 
GeneralRe: saving and loading application settings Pin
John R. Shaw7-Jul-03 13:12
John R. Shaw7-Jul-03 13:12 
GeneralRe: saving and loading application settings Pin
John M. Drescher7-Jul-03 13:31
John M. Drescher7-Jul-03 13:31 

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.