|
-
May 21st, 1999, 06:23 AM
#1
Attaching a control directly to a view
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|