Relative Content

Tag Archive for c++windowsmfc

MFC Scroll Bar in a CWnd based Subbox

I have CWnd based SubBox class. I have set up a Scrollbar for CWnd using WM_SIZE & OnSize(). The Scrollbar is showing/working only when I Minimize or Maximize the Main Dialog. When the contents of SubBox change the Scroll does not show automatically. I want SubBox to show ScrollBar automatically if something changes inside it and display non-visible content with scrollbar. Should I need to add anything in CWnd base class?