Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Set theme for dynamically created controls
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Set theme for dynamically created controls

 Post Reply Post Reply
Author
Message
vccomnet View Drop Down
Newbie
Newbie


Joined: 05 December 2003
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote vccomnet Quote  Post ReplyReply Direct Link To This Post Topic: Set theme for dynamically created controls
    Posted: 17 hours 6 minutes ago at 10:19pm
Hello,
     I encountered a problem: I wanted to dynamically create a CXTPEdit control on a CFormView and set its theme to xtpControlThemeVisualStudio2015. So, I referenced the demo Controls.exe, but the CXTPEdit in Controls.exe was drawn through a dialog box, not dynamically created. Therefore, I dynamically created a CXTPEdit in Controls.exe, but the result was the same as in CFormView: the dynamically created CXTPEdit did not have the xtpControlThemeVisualStudio2015 theme, meaning that when the mouse moved over the Edit, no bright border was displayed, and when the mouse moved away from the Edit, the border disappeared. My Create code and the final effect are shown below. Please help me identify any issues with my code? Thank you

Back to Top
vccomnet View Drop Down
Newbie
Newbie


Joined: 05 December 2003
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote vccomnet Quote  Post ReplyReply Direct Link To This Post Posted: 16 hours 59 minutes ago at 10:26pm
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.094 seconds.