Sign in to follow this  
peter_b

Child windows in resource editor? (WTL/MFC/win32)

Recommended Posts

Hello. I want to draw a dialog in the dialog editor (borderless). And then use it as a child window in a frame window. Is this possible to do? Im using WTL, but if you know how to do this in MFC or win32 i can probebly figure it out from that. I imagine it to be something like this: class CPropertiesWnd : public CWindowImpl<CPropertiesWnd > { enum{IDD = IDD_PROPS} // <- dialog id }; And then: m_wndProperties.Create(parent); m_view = m_wndProperties; Or something like that. But i cant figure it out. :( Thanks in advance!

Share this post


Link to post
Share on other sites
Hello,

If I'm reading correctly I know that in MFC what you would need is an SDI (single document interface) and have the View class point to a child class of CFormView (the class that should be attached to the dialog).

Visual Studio should be able to set this up in the wizard quickly for you to take a look at the code.

I'm not sure how it is done in WTL.

Hope that helps.

Richard

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this