ModifyStyleEx
-
Hi: I'm working on a Custom editbox acivex control,my activex have a property called "R2L Readling"(a Check box).when the user set this property the style of editbox will change to "Right to Left Reading order" at Run-Time,i have used the following code to do this: //////////////////////////////////////////////////////////// ModifyStyleEx(0,WS_EX_RTLREADING|WS_EX_RIGHT|WS_EX_LEFTSCROLLBAR); InvalidateControl(); //////////////////////////////////////////////////////////// all things work properly but "WS_EX_LEFTSCROLLBAR" doesn't work !!! in the other hand the left-scrollbar doesn't appear.please help me. excuse me for bad comments.english isn't my native language. Best Regards.
-
Hi: I'm working on a Custom editbox acivex control,my activex have a property called "R2L Readling"(a Check box).when the user set this property the style of editbox will change to "Right to Left Reading order" at Run-Time,i have used the following code to do this: //////////////////////////////////////////////////////////// ModifyStyleEx(0,WS_EX_RTLREADING|WS_EX_RIGHT|WS_EX_LEFTSCROLLBAR); InvalidateControl(); //////////////////////////////////////////////////////////// all things work properly but "WS_EX_LEFTSCROLLBAR" doesn't work !!! in the other hand the left-scrollbar doesn't appear.please help me. excuse me for bad comments.english isn't my native language. Best Regards.
Not all styles can be changed at run-time. You may need to delete and recreate the control. I really have no idea if WS_EX_LEFTSCROLLBAR is one of those or not. Never used it. Joel Lucsy