]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMSW update for CW, wxMac updated
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 3 Dec 1999 15:11:12 +0000 (15:11 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 3 Dec 1999 15:11:12 +0000 (15:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/cdef/extcdef.c [new file with mode: 0644]
src/mac/cdef/extcdef.h [new file with mode: 0644]
src/mac/cdef/extcdef.mcp [new file with mode: 0644]

diff --git a/src/mac/cdef/extcdef.c b/src/mac/cdef/extcdef.c
new file mode 100644 (file)
index 0000000..0e21b45
--- /dev/null
@@ -0,0 +1,29 @@
+#include "extcdef.h"  
+
+/*************************************************************************
+
+       main
+
+*************************************************************************/
+
+pascal SInt32 main(SInt16 varCode , ControlHandle theControl , ControlDefProcMessage message, SInt32 param )
+{
+       long    returnValue = 0L;
+       char    state = HGetState((Handle)theControl);
+       
+       if ( message != initCntl )
+       {
+               ExtCDEFInfo* info = (ExtCDEFInfo* )  (**theControl).contrlRfCon ;
+               if ( info )
+               {
+                       returnValue =   info->defProc( info->procID, theControl, message, param) ;
+               }
+       }
+       else
+       {
+                (**theControl).contrlRfCon = NULL ;
+       }
+       HSetState((Handle)theControl,state);
+
+       return(returnValue);                            /* tell them what happened */
+}
diff --git a/src/mac/cdef/extcdef.h b/src/mac/cdef/extcdef.h
new file mode 100644 (file)
index 0000000..2c7bf88
--- /dev/null
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <stdlib.h>
+#define kExtCDEFID 128 // resource id of our CDEF resource <Controls.h>
+const long kExtCDEFMagic = 0xFEEDFEED ; 
+typedef struct ExtCDEFInfo
+{
+       ControlDefProcPtr               defProc ; // this must always be the lowest element
+       long                                                            magic ;
+       long                                                            contrlRfCon ;
+       ControlHandle                           containerControl ;
+       Handle                                                  children ;
+       ControlFontStyleRec fontStyle ;
+       Boolean                                                 hasFocus ;
+       SInt16                                                  procID ;
+       long                                                            privateData ;
+} ExtCDEFInfo ;
+
+void NewExtCDEFInfo( ControlHandle theControl , ControlDefProcPtr defproc , SInt16 procID , long refcon ) ;
+void DisposeExtCDEFInfo( ControlHandle theControl) ;
diff --git a/src/mac/cdef/extcdef.mcp b/src/mac/cdef/extcdef.mcp
new file mode 100644 (file)
index 0000000..ecd61b8
Binary files /dev/null and b/src/mac/cdef/extcdef.mcp differ