Re: Replacing MFC dll
On Fri, 2 Jun 2006 12:33:09 -0500, "Eric Margheim"
<NOSPAM***eric@prism-grp.com***NOSPAM> wrote:
Concerning the "list type controls", you're in luck, or maybe not. The
controls wrapped by CListBox and CListCtrl use system scrollbars, which
aren't real controls; they are part of the non-client area Windows manages
without using controls.
So I probably only need to handle the drawing in the OnNcPaint handler and
the rest of the event handling will still be intact? It'd be nice if I
didn't have to handle everything.
You'll have to respect the part sizes, the parts being the arrows, thumb,
and track. The thumb might be tricky, but the arrows should be
straightforward as long as you don't size the control such that Windows
would reduce the arrow size. You can get the standard sizes from
GetSystemMetrics, but if you're doing XP themes, you may have to use the
theme API.
Interesting. I've been reading what I can find on subclassing globally.
Haven't found a real easy-to-understand code sample but I'm sure it's out
there. I just need to see the commands involved with subclassing the
standard controls.
Thanks for the insight.
For more on Windows-level subclassing, see:
Safer subclassing
http://blogs.msdn.com/oldnewthing/archive/2003/11/11/55653.aspx
--
Doug Harrison
Visual C++ MVP