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. How to change the forms and dialogs look and feel

How to change the forms and dialogs look and feel

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
5 Posts 3 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.
  • S Offline
    S Offline
    suthakar56
    wrote on last edited by
    #1

    Can anyone explain how to change the forms and other controls are look and feel (Runtime) in vc++?

    T H 2 Replies Last reply
    0
    • S suthakar56

      Can anyone explain how to change the forms and other controls are look and feel (Runtime) in vc++?

      T Offline
      T Offline
      TyrionTheImp
      wrote on last edited by
      #2

      Hi suthakar, You can call the ModifyStyle or ModifyStyleEx to update ur window styles dynamically. Alternative is to use the SetWindowLong family of functions (as documented in MSDN) to change the style byte values, and update the window accordingly. Just be sure that your style values are compatible with the way ur using ur dialogs/forms.

      S 1 Reply Last reply
      0
      • T TyrionTheImp

        Hi suthakar, You can call the ModifyStyle or ModifyStyleEx to update ur window styles dynamically. Alternative is to use the SetWindowLong family of functions (as documented in MSDN) to change the style byte values, and update the window accordingly. Just be sure that your style values are compatible with the way ur using ur dialogs/forms.

        S Offline
        S Offline
        suthakar56
        wrote on last edited by
        #3

        Hi Tyrion, Thanks for your information.Extented that shall i add themes like office2007 styles or VISTA styles to dialogs and forms?Is there any provision for adding those themes?

        1 Reply Last reply
        0
        • S suthakar56

          Can anyone explain how to change the forms and other controls are look and feel (Runtime) in vc++?

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          You need to customize your control (WM_OWNERDRAW) you can find examples for each control on the codeproject.

          Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

          T 1 Reply Last reply
          0
          • H Hamid Taebi

            You need to customize your control (WM_OWNERDRAW) you can find examples for each control on the codeproject.

            Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

            T Offline
            T Offline
            TyrionTheImp
            wrote on last edited by
            #5

            yup i agree with hamid, WM_OWNERDRAW gives u full control over the drawing operations. and sorry but i`m not too familiar with the newer Vista and Office 2007 styles

            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