Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Trying to use CTabCtrl - VS 2010

CChiesaCChiesa Posts: 1Member
Am trying to place child dialogs inside a CTabCtrl, using the example/tutorial at http://www.codersource.net/mfc-tutorials.ctabctrl.aspx . I have now worked through the example twice and gotten it to build -- but it incurs an access violation on trying to Create my child dialogs, because GetParent() fails, because someone's (not sure whose) m_hWnd is NULL. I am sort of new to all this, don't know the particular operations that have to happen, in what order, or how I make that happen, to get m_hWnd NOT to be NULL at that point in the program.

Oddly, the downloadable .zip of source code linked from that site, after conversion to VS 2010, builds AND works, yet a diff between its files and mine shows only very minor differences, in areas that, as far as I can tell, don't seem to have any bearing on creating subclassed Dialog controls.

I would very much appreciate any light anyone can shed. Thanks in advance.
Sign In or Register to comment.