Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   Disable Horizontal scroll bar (http://www.go4expert.com/forums/disable-horizontal-scroll-bar-t23296/)

Starter 13Sep2010 22:40

Disable Horizontal scroll bar
 
Hi i have been trying this for long time but am not getting any result , my problem is that i want to remove the horizontal scroll bar , i have tried 'EnableScrollBar' and 'SetWindowLong' but of no use.

Any help would be appreciated
Thanking you in advance

shabbir 14Sep2010 09:10

Re: Disable Horizontal scroll bar
 
Can you explain from where are you trying to remove it?

Starter 14Sep2010 09:54

Re: Disable Horizontal scroll bar
 
Hi ,
I am building an application similar to 'Notepad' , presently i am doing the 'WordWrap'
part for which i have to remove or disable the horizontal scroll bar.

Any help would be appreciated
Thanking you in advance

shabbir 14Sep2010 09:59

Re: Disable Horizontal scroll bar
 
Set Auto HScroll and Auto VScroll from the Styles Tab in Edit Properties. Or, if you create the Edit Control from code at run time, you need to set the styles ES_AUTOHSCROLL, and ES_AUTOVSCROLL.

Starter 14Sep2010 10:57

Re: Disable Horizontal scroll bar
 
Thankyou for the reply, yes i have included both ES_AUTOHSCROLL and ES_AUTOVSCROLL but the actual problem is that when i check the 'WordWrap' from the format menu the 'HorizontalScrollbar' should be disabled only then the wordwrap would work . I have tried EnableScrollBar and been googling for long time but of no use . presently i am thinking of saving all the data from the edit control into a buffer and creating the edit control without 'ES_AUTOHSCROLL' . But still if any one knows of any other method pls let me know.

Any help would be appreciated
Thankingyou in advance


All times are GMT +5.5. The time now is 19:31.