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

C / C++ / MFC

 
GeneralPeculiarity of hard-disk Pin
nencini29-Oct-02 21:01
nencini29-Oct-02 21:01 
GeneralDLL Question Pin
Stan the man29-Oct-02 20:37
Stan the man29-Oct-02 20:37 
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 
Hello, I'm trying tho inherit from a PropertySheet and from a property page...

INTRODUCTION:
I'm trying to be able to resize all the property sheets that need to be resized and in order to avoid all the work for each property sheet and property page, I've decided to inherit from one Property sheet/page that has that function implemented.

PROPERTY SHEET INHERITHANCE FOLOWED STEPS:
In order to inherit from the property sheet I've followed those steps:

1. create the new PopertySheet class.
2. add the member variables, functions and methods.
3. include the header of the class that have all those new methods... into the header file of one of my property sheets.
4. inherit from that new class (see below):
<br />
class CPSEstacio : public CPSAutoRedimensionable // CPropertySheet (was the old class)<br />

5. change the contructors:
<br />
CPSEstacio::CPSEstacio(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)<br />
:CPSAutoRedimensionable(nIDCaption, pParentWnd, iSelectPage)	<br />
//:CPropertySheet(nIDCaption, pParentWnd, iSelectPage) this was the old way...<br />


RELATED QUESTIONS:
- Why do I need to change the contructors...
- Are these the right steps?

-----------------------------------------------------------------------------

In the property pages I don't understand how to do it:

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

In VC++6 when you make a new class that's a CPropertyPage, you must tell which dialog resource will it use...

If I don't know which I will use, what do I have to type there?

-----------------------------------------------------------------------------

As always thank you very much...
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 
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 

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.