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. owner-drawn button

owner-drawn button

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiontutorialcareer
3 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.
  • I Offline
    I Offline
    iayd
    wrote on last edited by
    #1

    Hi I am a new learner of visual c++ for a new job.I want to use an owner-drawn button in my application.for example I downloaded CRoundButton2 project from this site but I couldn't use it.my question is that how can I apply this button for the buttons in my project.If someone can explain how can I use them,I will be so glad.(I tried to do what was explained in the project,bu I was not successful.) Good Bye (Full name of the project is -> CRoundButton2 - A fancy graphical button)

    T J 2 Replies Last reply
    0
    • I iayd

      Hi I am a new learner of visual c++ for a new job.I want to use an owner-drawn button in my application.for example I downloaded CRoundButton2 project from this site but I couldn't use it.my question is that how can I apply this button for the buttons in my project.If someone can explain how can I use them,I will be so glad.(I tried to do what was explained in the project,bu I was not successful.) Good Bye (Full name of the project is -> CRoundButton2 - A fancy graphical button)

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

      the best place to ask is in the forum at the botton of the article from which you downloaded it.


      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      1 Reply Last reply
      0
      • I iayd

        Hi I am a new learner of visual c++ for a new job.I want to use an owner-drawn button in my application.for example I downloaded CRoundButton2 project from this site but I couldn't use it.my question is that how can I apply this button for the buttons in my project.If someone can explain how can I use them,I will be so glad.(I tried to do what was explained in the project,bu I was not successful.) Good Bye (Full name of the project is -> CRoundButton2 - A fancy graphical button)

        J Offline
        J Offline
        johny_d
        wrote on last edited by
        #3

        you will probably need to subclass the item. here is what you do: - create a data member for the control you subclass in the class of the owner window - include the new control header - change the type of the member so, you will change class CMyDialog : public CDialog { //blah, blah, blah CButton m_btn; }; into #include "RoundButton2.h" class CMyDialog : public CDialog { //blah, blah, blah CRoundButton2 m_btn; }; there are other ways as well, but this looks the best from my POINT of CView

        Live long and prosper johny74656@gmail.com

        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