sepisoad
sepisoad

Reputation: 2281

how to add a custom mfc control to the dialog window?

I've derived a class from CStatic in MFC. But I don't know how to add it to my dialog window. This mfc application that I'm working on is a dialog based application.

In Gtk+ or Qt we could use layouts and add our widgets to them, but in mfc it doesn't seem to be such a mechanism. I'm wondering how is it possible for an custom made control to be added to another GUI element!!!

Please give me a simple example if you can. thank you

Upvotes: 0

Views: 1136

Answers (1)

dwo
dwo

Reputation: 3636

I think the technique you are looking for is subclassing (MSDN).

There is a good sample on that page too.

Upvotes: 1

Related Questions