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. custom control

custom control

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiographicstools
3 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.
  • X Offline
    X Offline
    xiantia
    wrote on last edited by
    #1

    Hello I French, am sorry for my English. I have create CStaticCtrl class (CStaticCtrl.cpp, CStaticCtrl.h) derive of CStatic. I have just add OnCtrlColor in this new class. This news class functions very well. Now i want add this new class in "Tools Control" in Visual studio 6. I want a button in "Tools control" for drawing this new CStaticCtrl same as CStatic in a dialog. But i don't now. And you ? Thank xDiamant

    S 1 Reply Last reply
    0
    • X xiantia

      Hello I French, am sorry for my English. I have create CStaticCtrl class (CStaticCtrl.cpp, CStaticCtrl.h) derive of CStatic. I have just add OnCtrlColor in this new class. This news class functions very well. Now i want add this new class in "Tools Control" in Visual studio 6. I want a button in "Tools control" for drawing this new CStaticCtrl same as CStatic in a dialog. But i don't now. And you ? Thank xDiamant

      S Offline
      S Offline
      squidev
      wrote on last edited by
      #2

      Hi xDiamant, I don't think you can get a button for each and every new control you design. But there is the "Custom Control" button that will allow you to use any control you have created, in the resource editor. This article should help: Creating Custom Controls squidev

      X 1 Reply Last reply
      0
      • S squidev

        Hi xDiamant, I don't think you can get a button for each and every new control you design. But there is the "Custom Control" button that will allow you to use any control you have created, in the resource editor. This article should help: Creating Custom Controls squidev

        X Offline
        X Offline
        xiantia
        wrote on last edited by
        #3

        Thank for link. For Add a tool control, i think use a ActiveX control (OCX). I search in the Net .... Thank Bye

        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