Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ModifyStyleEx

ModifyStyleEx

Scheduled Pinned Locked Moved C / C++ / MFC
c++comhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    ZarrinPour
    wrote on last edited by
    #1

    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.

    J 1 Reply Last reply
    0
    • Z ZarrinPour

      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.

      J Offline
      J Offline
      Joel Lucsy
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups