Switching focus between two CScrollWindowImpl based windows

"jgdavies52" <jonathangdavies-XZoyATsUNX5Wk0Htik3J/[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
Hi,
I have essentially two bitmap displaying view windows based on CScrollWindowImpl and am not able to switch focus from one view to the other. The window heirarchy is:

             CMainFrame
                   |
            CSplitterWindow_______________ _ _
		   |			
	    CHorSplitterWindow____________________________
		   |		                          |
		   |                                      |
	    CPaneContainer                          CPaneContainer
		   |		                          |
	    CMyBitmapView                             CBitmapView

I call CHorSplitterWindow.SetActivePane(...) on creation but then focus doesn't change to the other scrolling bitmap view when clicking with the mouse or tabbing as I'd expect. The scroll bars themselves, in each view, work with the mouse, but the mouse-wheel messages always go to the same window.
If I click on the view without focus, use Alt-Tab to go to another Application, then Alt-Tab to switch back to that view then it does get the focus and gets mouse-wheel messages!
Am I missing a handler, forwarding or similar?



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.