Visual C++ and MFC Fundamentals Chapter 18: Progress-Based Controls
// Show the window
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();return TRUE;
}
};CSimpleApp theApp;To equip your frame with a horizontal scroll bar, create it with the WS_HSCROLL
style:class CMainFrame : public CFrameWnd
{
public:
CMainFrame()
{
// Create the window's frame
Create(NULL, "Windows Application",
WS_OVERLAPPEDWINDOW | WS_HSCROLL,
CRect(120, 100, 420, 320));
}
};To get both scroll bars, combine both styles: