Posted on 1998-01-18
How can I create a button derived form CButton in a ClistView class. I need to create it in my OnDraw(). But when I do I get an arror saying that pWnd cannot be NULL. I use "this" when I create my button. If I try to use afxgetparet, the button will not display correctly in the view. And when I try to resize I get the same error as before. I know this should be easy but I can't seem to get it. Could some one help me.