Hi, I was wondering if anyone can describe the steps for adding an ATL window class as a control to a dialog resource. I found an article discussing it here, but that involves MFC, so I was hoping to get some clarification on how to do it with ATL.
So far I have (a) a dialog class derived from
CDialogImpl, which includes a dialog resource, and (b) another class derived from
CWindowImpl, which I'd like to add as the custom control in the dialog.
DECLARE_WND_CLASS to the latter class, so that it has an identifiable class name. From what I understand, this class name should be used for the custom control in the dialog resource editor.
But I'm not sure how to go about doing the rest. Do I still call
Create on the control class? And if so, where? It seems that no matter what I try, ATL throws an assertion error about some HWND not existing.
Thank you very much for any assistance.