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 » BUG: Multiline CExtEdit controls with scrolling Collapse All
Subject Author Date
Andrew Harding Mar 22, 2005 - 2:18 PM

Hi,

When I subclass a multiline scrolling edit field with a CExtEdit control, the scroll bar is not painted correctly. It appears as if the client area is extended all the way through the scroll bar area (non-client), causing artifacts of the scroll bar to be drawn when you click in the scroll bar area. The entire scroll bar is not drawn, however.

I discovered this while creating a custom class that subclasses CExtEditBase. To fix it, I added CExtEditBase::OnNcPaint() at the end of my _DrawImpl method, which works great for what I am doing.

Thanks!

Technical Support Mar 23, 2005 - 6:56 AM

The CExtEdit class is designed for single line edit controls without scroll bars. It manages its non-client area and that is why you had problems with scroll bars. You absolutely correctly switched to using the CExtEditBase class. In additon to what CExtEditBase offers you, it features the Prof-UIS context menu.