Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » WM_SETFOCUS not getting fired for CExtScrollBar Collapse All
Subject Author Date
Chris Anderson Jul 20, 2007 - 2:59 AM

When a dialog has 2 children of type CExtEdit and CExtScrollBar and the the edit control has the focus. Clicking on the Scroll bar control doesnt cause the edit control to loose the focus. You can try reproducing the issue with the ProfUIS Controls sample. Go to the Status Bar Page, add a scroll bar to the status bar, set focus to the position edit box (spin control) and click on the scrollbar. The scrollbar doesnt get the WM_SETFOCUS message.

Chris Anderson Jul 25, 2007 - 4:23 AM

Is support looking into this? I havent got any response to this query/finding.

Technical Support Jul 25, 2007 - 8:40 AM

Yes, we analyzed your report. The CExtScrollBar class is designed for scrollable views and not for using it in dialogs. That is why it never receives input focus. The scroll bars in the grid windows do mouse click handling but leave the grid window focused. Besides, the latest Microsoft applications never use scroll bars in dialogs or in the controls inside a toolbar or a status bar.