I would like to create a standard control (a CListView)directly in my view definition and attach it to the view in the OnCreate function.
My very first attempt is :

CLControl.Create(WS_VISIBLE | WS_BORDER, rect, this, IDR_LISTCONTROL)

But I get a general protection fault. For what i can see, the 'this' it's not a valid owner HWND.

Any help would be REALLY appreciated!