TPLATE.C

Go to the documentation of this file.
00001 /* --
00002 OpenFX version 1.0 - Modelling, Animation and Rendering Package
00003 Copyright (C) 2000 OpenFX Development Team
00004 
00005 This program is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU General Public License
00007 as published by the Free Software Foundation; either version 2
00008 of the License, or (at your option) any later version.
00009 
00010 This program is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 GNU General Public License for more details.
00014 
00015 You should have received a copy of the GNU General Public License
00016 along with this program; if not, write to the Free Software
00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 
00019 You may contact the OpenFX development team via elecronic mail
00020 at core@openfx.org, or visit our website at http://openfx.org for
00021 further information and support details.
00022 -- */
00023 
00024 /*  TPLATE.C                                                        */
00025 #include <stdlib.h>
00026 #include <stdio.h>
00027 #include <math.h>
00028 #include <windows.h>
00029 
00030 #include "struct.h"
00031 #include "dstruct.h"
00032 
00033 #include "tplate.h"
00034 
00035 #define DESELECTED 0
00036 #define SELECTED   1
00037 
00038 
00039 static HWND      hParent;
00040 static HINSTANCE hThisInstance;
00041 
00042 
00043 #if __WATCOMC__
00044 int APIENTRY LibMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00045 #else
00046 BOOL WINAPI DllMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00047 #endif
00048   switch (dwReason) {
00049     case DLL_PROCESS_ATTACH: {
00050       hThisInstance=hDLL;
00051       if(hDLL == NULL)MessageBox ( GetFocus()," NULL instance",NULL, MB_OK);
00052       break;
00053     }
00054     case DLL_PROCESS_DETACH:
00055       break;
00056   }
00057   return TRUE;
00058 }
00059 
00060 BOOL _Xmodeler
00061  (HWND parent_window,HWND info_window,X__STRUCTURE *lpevi){
00062  lpEVI=lpevi;
00063  hParent=parent_window;
00064  MessageBox(hParent,"Template for external modellers"," ",MB_OK);
00065  return TRUE;
00066 }

Generated on Sun Apr 27 14:20:12 2014 for OpenFX by  doxygen 1.5.6