Scroll bars not going away

Hello there

I have created a HWND with a vertial scroll bar like so:

1
2
	hMessageIn = createAHWND(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD|WS_VISIBLE|ES_MULTILINE|WS_VSCROLL | ES_AUTOVSCROLL,
		50,120,400,200,hWnd, NULL, GetModuleHandle(NULL), NULL);


and then hidden it like so:
ShowWindow(hMessageIn, SW_HIDE)

Which works fine, except that it still shows the scroll bar. I have tried using ShowScrollBar() but that doesn't make any difference. Is there something I am missing?

Thanks,
Squigglyo
If the scrollbars aren't a control then:

ShowScrollBar(hMessageIn,SB_BOTH,FALSE);

otherwise get the hwnd of the scrollbar control and do:

ShowScrollBar(hScrollCtrl,SB_CTL,FALSE);
Using the ShowScrollbar method does nothing, the scroll bar is still there, while its textbox is hidden.


Looks like it should be hiding... but it isnt.


I guess ill have to go and make the scrollbar its own seperate HWND and see how that goes
Topic archived. No new replies allowed.