Programmatically create CButton with Function

 

Hi,


Is it possible to programmatically create CButton with its function just like on vc++? I have created CButton, CList and other Controls but the problem is how to create their functions especially the CButton.


Thanks.

Reason: