comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  How to find the window who sends me a window-message?         


Author: momonga
Date: May 31, 2008 14:03

Hi

The project I am working on has several processes.
And someone of them seems to send me WM_CLOSE when I am about to
shutdown or logoff the session.
Does someone know techniques to find the process or window who sends
me a window-message?

thanks!
2 Comments
  CHtmlView::OnTranslateAccelerator nCmdID parameter         


Author: Alexander Smirnov
Date: May 31, 2008 13:47

Hi
I'm experimenting with MFC CHtmlView class. I want to dynamically
generate html formatted text in it. So I want to disable some shortcut
keys of Internet Explorer. Namely F5 and Ctrl+F5. I don't want to
disable all keys. For example CTRL+F (find text) would be useful.

I found that I can do it by overriding
CHtmlView::OnTranslateAccelerator method and returning S_OK for
particular nCmdID values.

Is this method correct?
What header files are mCmdID values defined in? Is there any
description for this values? For now I can only expirementally find
what these values are equal to. I didn't find any description in MSDN.

Thanks in advance
1 Comment