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. ATL / WTL / STL
  4. How can we create a dynamic button, label and a listview control on a window created in ATL/WTL ?

How can we create a dynamic button, label and a listview control on a window created in ATL/WTL ?

Scheduled Pinned Locked Moved ATL / WTL / STL
c++helpquestion
4 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.
  • D Offline
    D Offline
    Dharmendra Bhargava
    wrote on last edited by
    #1

    I am creating an ATL/WTL application in which i need to create a window.I have created the window now i need to create button, label and list view on it dynamically and attach these controls to the main window. Also i have classes for button and labels....like CMyButton....etc Please help..?:confused: Thanks in advance.

    J 1 Reply Last reply
    0
    • D Dharmendra Bhargava

      I am creating an ATL/WTL application in which i need to create a window.I have created the window now i need to create button, label and list view on it dynamically and attach these controls to the main window. Also i have classes for button and labels....like CMyButton....etc Please help..?:confused: Thanks in advance.

      J Offline
      J Offline
      Jonathan Davies
      wrote on last edited by
      #2

      Create using the parent and position as parameters, making sure they are set to visible. Messages from controls are WM_COMMAND with the controls ID as a parameter.

      D 1 Reply Last reply
      0
      • J Jonathan Davies

        Create using the parent and position as parameters, making sure they are set to visible. Messages from controls are WM_COMMAND with the controls ID as a parameter.

        D Offline
        D Offline
        Dharmendra Bhargava
        wrote on last edited by
        #3

        Thanks for the reply :-D . But can you please provide a sample code snippet to make it more clear.........?

        J 1 Reply Last reply
        0
        • D Dharmendra Bhargava

          Thanks for the reply :-D . But can you please provide a sample code snippet to make it more clear.........?

          J Offline
          J Offline
          Jonathan Davies
          wrote on last edited by
          #4

          Sorry I don't have any code that I can find, I just seem to remember doing this sort of thing. I had a quick look on the net... and found an MS MFC example [^] which should translate to ATL. What have you tried?

          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