> The actual dialog doesn't  have it's own class.  It is
> just a CPropertySheet created when the app is
> initialized.  This means that the code to handle the
> moving of the window must be replicated for each
> dialog class.

Surely it does not imply that at all.  It either means that your code should
be implemented in some new class (CMoveablePropertySheet?), which in turn
derives from CPropertySheet, or it means that each dialog page should derive
from some new class (CMoveablePropertyPage?) which in turn derives from
CPropertyPage
I.e., either you do

MoveablePropertySheet.h:
class CMoveablePropertySheet : public CPropertySheet
{
//
Your mouse click code
//
}

NodeConfig.cpp:
CMoveablePropertySheet propdlg(IDS_TITLE);

or you do

MoveablePropertyPage.h:
class CMoveablePropertyPage : public CPropertyPage
{
//
OnMouseClick(); // or whatever
}

PropAdvanced.h:
class CPropAdvanced : public CMoveablePropertyPage
{
// unchanged
}


dave


_______________________________________________
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to