Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv443/src/gui
Modified Files:
wxMDialogs.cpp
Log Message:
moved GetParentOfClass() here from wxDialogLayout.cpp
Index: wxMDialogs.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMDialogs.cpp,v
retrieving revision 1.378
retrieving revision 1.379
diff -b -u -2 -r1.378 -r1.379
--- wxMDialogs.cpp 23 Jul 2002 18:47:11 -0000 1.378
+++ wxMDialogs.cpp 2 Sep 2002 18:39:25 -0000 1.379
@@ -487,4 +487,15 @@
}
+wxWindow *GetParentOfClass(const wxWindow *win, wxClassInfo *classinfo)
+{
+ // find the frame we're in
+ while ( win && !win->IsKindOf(classinfo) ) {
+ win = win->GetParent();
+ }
+
+ // may be NULL!
+ return (wxWindow *)win; // const_cast
+}
+
// ============================================================================
// implementation
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates