Click here to Skip to main content
15,895,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DLL Question Pin
Joaquín M López Muñoz29-Oct-02 21:11
Joaquín M López Muñoz29-Oct-02 21:11 
GeneralRe: DLL Question Pin
Stan the man29-Oct-02 21:59
Stan the man29-Oct-02 21:59 
GeneralRe: DLL Question Pin
Joaquín M López Muñoz29-Oct-02 23:08
Joaquín M López Muñoz29-Oct-02 23:08 
GeneralRe: DLL Question Pin
KarstenK30-Oct-02 1:49
mveKarstenK30-Oct-02 1:49 
GeneralRe: DLL Question Pin
Stan the man30-Oct-02 2:10
Stan the man30-Oct-02 2:10 
Generalinheritance steps... (property sheet and pages) Pin
Joan M29-Oct-02 20:26
professionalJoan M29-Oct-02 20:26 
GeneralRe: inheritance steps... (property sheet and pages) Pin
jhwurmbach29-Oct-02 21:16
jhwurmbach29-Oct-02 21:16 
GeneralRe: inheritance steps... (property sheet and pages) Pin
Joaquín M López Muñoz29-Oct-02 21:22
Joaquín M López Muñoz29-Oct-02 21:22 
Hi Joan,

Steps 4 and 5 are right, but do not suffice: additionally, you've got to replace CPropertySheet with CPSAutoRedimensionable everywhere where CPropertySheet appears, notably in BEGIN_MESSAGE_MAP.
As for why you should change the ctors, it's basic inheritance stuff: a derived class is responsible to call ctors of its base class(es) (except if the default ctor applies); as you've changed the base class, this has to be propagated to the ctors as well.

what happens to the dialog resource that's asked in the creation of the new class?

Property pages are nothing but special dialogs embedded into a property sheet. As dialogs, they must be attached to a dialog resource. If this is not very clear to you, look for some tutorial on property sheets.

Also, I'd like to recommend you Erwin Tratar's Layout Manager for Dialogs, Formviews, DialogBars and PropertyPages
[^], which turns managing resizing into a child's play.


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralExtension Dlls Pin
Furrukh Azam29-Oct-02 19:59
sussFurrukh Azam29-Oct-02 19:59 
GeneralRe: Extension Dlls Pin
Pavel Klocek29-Oct-02 21:07
Pavel Klocek29-Oct-02 21:07 
GeneralRe: Extension Dlls Pin
Trollslayer30-Oct-02 1:43
mentorTrollslayer30-Oct-02 1:43 
Questionrealloc assumption...? Pin
alex.barylski29-Oct-02 19:42
alex.barylski29-Oct-02 19:42 
AnswerRe: realloc assumption...? Pin
Stephane Rodriguez.29-Oct-02 20:14
Stephane Rodriguez.29-Oct-02 20:14 
GeneralRe: realloc assumption...? Pin
alex.barylski30-Oct-02 9:30
alex.barylski30-Oct-02 9:30 
GeneralRe: realloc assumption...? Pin
Stephane Rodriguez.30-Oct-02 9:42
Stephane Rodriguez.30-Oct-02 9:42 
GeneralSpy ++++ Pin
Shamoon29-Oct-02 19:23
Shamoon29-Oct-02 19:23 
GeneralRe: Spy ++++ Pin
dabs29-Oct-02 20:09
dabs29-Oct-02 20:09 
GeneralRe: Spy ++++ Pin
567890123430-Oct-02 2:32
567890123430-Oct-02 2:32 
GeneralClass in Dll Pin
stevenson29-Oct-02 19:16
stevenson29-Oct-02 19:16 
GeneralRe: Class in Dll Pin
Bugra Barin29-Oct-02 20:06
Bugra Barin29-Oct-02 20:06 
GeneralRe: Class in Dll Pin
Bugra Barin29-Oct-02 20:08
Bugra Barin29-Oct-02 20:08 
GeneralFirst error for the night.... Pin
Nick Parker29-Oct-02 17:06
protectorNick Parker29-Oct-02 17:06 
GeneralRe: First error for the night.... Pin
Anatari29-Oct-02 17:28
Anatari29-Oct-02 17:28 
GeneralRe: First error for the night.... Pin
Nick Parker29-Oct-02 17:39
protectorNick Parker29-Oct-02 17:39 
GeneralRe: First error for the night.... Pin
Anatari29-Oct-02 17:48
Anatari29-Oct-02 17:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.