Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: load file in buffer Pin
jmkhael29-Aug-02 23:31
jmkhael29-Aug-02 23:31 
GeneralRe: load file in buffer Pin
Brakanjan30-Aug-02 2:49
Brakanjan30-Aug-02 2:49 
GeneralRe: load file in buffer Pin
Brakanjan30-Aug-02 2:56
Brakanjan30-Aug-02 2:56 
GeneralRe: load file in buffer Pin
pépé30-Aug-02 4:18
pépé30-Aug-02 4:18 
GeneralTree control alignment Pin
Anonymous29-Aug-02 22:40
Anonymous29-Aug-02 22:40 
GeneralRe: Tree control alignment Pin
Tomasz Sowinski29-Aug-02 23:34
Tomasz Sowinski29-Aug-02 23:34 
GeneralAccess of PropertyPage members Pin
Arjan Schouten29-Aug-02 22:39
Arjan Schouten29-Aug-02 22:39 
GeneralRe: Access of PropertyPage members Pin
Pavel Klocek29-Aug-02 23:17
Pavel Klocek29-Aug-02 23:17 
1) You can use IsKindOf:

CPropertyPage* page = GetPage(i); <br />
if(page.IsKindOf(RUNTIME_CLASS(CMainPage))) ((CMainPage*)page)->GetList();


2) If you have GetList() methods in all your pages, you can derive your pages from a intermediate class which defines the GetList() method as virtual:

class CListPage:CPropertyPage<br />
{<br />
    virtual CParameterList GetList()=0;<br />
    ...<br />
}<br />
<br />
class CMainPage:CListPage<br />
{<br />
   virtual CParameterList GetList(){...}<br />
   ...<br />
}


Sonork 100.15206;PavelK
GeneralRe: Access of PropertyPage members Pin
Arjan Schouten29-Aug-02 23:33
Arjan Schouten29-Aug-02 23:33 
GeneralA question about a strange "extern" statement. Pin
George Ma29-Aug-02 22:30
George Ma29-Aug-02 22:30 
GeneralRe: A question about a strange "extern" statement. Pin
Dominik Reichl29-Aug-02 22:41
Dominik Reichl29-Aug-02 22:41 
GeneralRe: A question about a strange "extern" statement. Pin
Tomasz Sowinski29-Aug-02 23:42
Tomasz Sowinski29-Aug-02 23:42 
GeneralRe: A question about a strange "extern" statement. Pin
Nish Nishant29-Aug-02 23:42
sitebuilderNish Nishant29-Aug-02 23:42 
GeneralRe: A question about a strange "extern" statement. Pin
Tomasz Sowinski29-Aug-02 23:51
Tomasz Sowinski29-Aug-02 23:51 
GeneralRe: A question about a strange "extern" statement. Pin
Joaquín M López Muñoz30-Aug-02 0:47
Joaquín M López Muñoz30-Aug-02 0:47 
GeneralRe: A question about a strange "extern" statement. Pin
Tomasz Sowinski30-Aug-02 0:54
Tomasz Sowinski30-Aug-02 0:54 
GeneralRe: A question about a strange "extern" statement. Pin
Nish Nishant30-Aug-02 1:08
sitebuilderNish Nishant30-Aug-02 1:08 
GeneralRe: A question about a strange "extern" statement. Pin
George Ma30-Aug-02 1:33
George Ma30-Aug-02 1:33 
GeneralRe: A question about a strange "extern" statement. Pin
markkuk30-Aug-02 1:05
markkuk30-Aug-02 1:05 
GeneralRe: A question about a strange "extern" statement. Pin
George Ma30-Aug-02 1:34
George Ma30-Aug-02 1:34 
QuestionHow to hook Win32 function call? Pin
sonshiro29-Aug-02 21:18
sonshiro29-Aug-02 21:18 
AnswerRe: How to hook Win32 function call? Pin
Joaquín M López Muñoz29-Aug-02 21:27
Joaquín M López Muñoz29-Aug-02 21:27 
AnswerRe: How to hook Win32 function call? Pin
Stephane Rodriguez.29-Aug-02 22:22
Stephane Rodriguez.29-Aug-02 22:22 
GeneralProblem calculating visible lines in a RichEditCtrl Pin
jabbaj29-Aug-02 21:10
jabbaj29-Aug-02 21:10 
GeneralRe: Problem calculating visible lines in a RichEditCtrl Pin
Joaquín M López Muñoz29-Aug-02 21:25
Joaquín M López Muñoz29-Aug-02 21:25 

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.