bitbucket: C++ MFC ATL WTL Win32 COM ActiveX Samples Tutorials Source Code Controls

BitBucket Controls


The Controls section has ready-to-use classes, which are mostly UI-related.  I try to make them least dependent on certain libraries, so porting around the solutions beetween ATL/WTL, MFC and bare Win32 is usually easy.


MultiSplitWnd is an extended CSplitterWnd MFC implementation, that allows changing number of panes and split orientation on the fly even in a so called "static" splitter. (MFC-specific)

CWndImage implements the minimal steps required to display a bitmap, taking care of the palette and size problems. The class is written for MFC, most of the magic happens in the OnPaint function which should be easy to port to Win32 or ATL. Some features like scaling, cutting and tiling were added on the way, when they were a spinoff of the required implementation (or existing snippets).