Creating Control Object Dynamically
-
How can I create a control object at runtime dynamically and join it to the dialog. eg. If I want to create many buttons at runtime after the user choosen some options(like no. of buttons he wants to use it).So what can I do. Could anybody helps me please ?:sigh: Dr Abudawood
-
How can I create a control object at runtime dynamically and join it to the dialog. eg. If I want to create many buttons at runtime after the user choosen some options(like no. of buttons he wants to use it).So what can I do. Could anybody helps me please ?:sigh: Dr Abudawood
If using MFC:
CButton::Create
. If using raw Win32:CreateWindowEx
, passing"BUTTON"
as thelpClassName
parameter. See also the Predefined User Controls[^]. -
If using MFC:
CButton::Create
. If using raw Win32:CreateWindowEx
, passing"BUTTON"
as thelpClassName
parameter. See also the Predefined User Controls[^].Thank you very much MR\ Mike I will test it in MFC. Dr Abudawood