WM_HELP message and ActiveX control

  • Thread starter Thread starter mfc130603
  • Start date Start date
M

mfc130603

Hi,

My MFC app has dialogs that handle the WM_HELP message. Each dialog has
its own context-help string that opens a corresponding page in an HTML
Help file. It all works fine - execpt if the currently active dialog
has an MSFlexGrid control which has focus (any other child control
having focus works correctly, but not flexgrid.

MSDN documentation on WM_HELP Message says "The DefWindowProc function
passes WM_HELP to the parent window of a child window or to the owner
of a top-level window," but that's not happening. So instead of the
parent dialog getting the WM_HELP message, CMainFrame gets the ID_HELP
command message, and I've lost my context-specific feature.

Any ideas why, and how to fix?

All help is greatly appreciated.
Jim
 
mfc130603 said:
Hi,

My MFC app has dialogs that handle the WM_HELP message. Each dialog has
its own context-help string that opens a corresponding page in an HTML
Help file. It all works fine - execpt if the currently active dialog
has an MSFlexGrid control which has focus (any other child control
having focus works correctly, but not flexgrid.

MSDN documentation on WM_HELP Message says "The DefWindowProc function
passes WM_HELP to the parent window of a child window or to the owner
of a top-level window," but that's not happening. So instead of the
parent dialog getting the WM_HELP message, CMainFrame gets the ID_HELP
command message, and I've lost my context-specific feature.

Any ideas why, and how to fix?

All help is greatly appreciated.
Jim

Jim:

Have you tried deriving from MSFlexGrid and handling WM_HELP?

David Wilkinson
 
Back
Top