How can we create a dynamic button, label and a listview control on a window created in ATL/WTL ?
-
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.
-
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.
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.
-
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.
Thanks for the reply :-D . But can you please provide a sample code snippet to make it more clear.........?
-
Thanks for the reply :-D . But can you please provide a sample code snippet to make it more clear.........?
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?