WM_HELP message and ActiveX control

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
 
D

David Wilkinson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top