I created a window with scrollbar using CreateWindowEx with Style WS_CAPTION | WS_SYSMENU|WS_VSCROLL | WS_HSCROLL. and loaded images. I have a menu Item 'stretch view ',which will help to view large images to fit to screen so that a viewer can view whole image of large images without using scrollbar.Every thing worked fine except the scrollbar. My aim is to hide the scrollbar dynamically when i clicked on 'StretchView' and show it when I click in 'NormalView'.
wndStyle |= WS_HSCROLL;
wndStyle |= WS_VSCROLL;
SetWindowLong(hWnd, GWL_STYLE, wndStyle);
But no use..Pls Help me to find a solution of it
Thnx in advance