Commit in reactos/lib/commctrl on MAIN
commctrl.def+60added 1.1
commctrl.edf+60added 1.1
commctrl.rc+38added 1.1
commctrl_main.c+68added 1.1
Makefile+19added 1.1
+245
5 added files
Added a stub implementation of commctrl.dll for WinCE support

reactos/lib/commctrl
commctrl.def added at 1.1
diff -N commctrl.def
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ commctrl.def	4 Mar 2004 18:54:21 -0000	1.1
@@ -0,0 +1,60 @@
+LIBRARY commctrl.dll
+EXPORTS
+;Header_Init@@YAHPAUHINSTANCE__@@@Z
+;ListView_Init@@YAHPAUHINSTANCE__@@@Z
+;TV_Init@@YAHPAUHINSTANCE__@@@Z
+;_CenterWindow	@35
+;_CommandBands_AddAdornments	@39
+;_CommandBands_AddBands	@37
+;_CommandBands_Create	@36
+;_CommandBands_GetCommandBar	@38
+;_CommandBands_GetRestoreInformation	@41
+;_CommandBands_Show	@40
+_CommandBar_AddAdornments	@10
+;_CommandBar_AddBitmap	@5
+;_CommandBar_AlignAdornments	@44
+_CommandBar_Create	@3
+;_CommandBar_DrawMenuBar	@43
+;_CommandBar_GetItemWindow	@11
+;_CommandBar_GetMenu	@9
+;_CommandBar_Height	@12
+;_CommandBar_InsertComboBox	@6
+;_CommandBar_InsertControl	@7
+_CommandBar_InsertMenubar	@8
+;_CommandBar_InsertMenubarEx	@42
+_CommandBar_Show	@4
+;_CreatePropertySheetPageW	@19
+;_CreateStatusWindowW	@17
+;_CreateToolbar	@15
+;_CreateToolbarEx	@16
+;_CreateUpDownControl	@14
+;_DPA_Destroy	@31
+;_DPA_GetPtr	@32
+;_DSA_Create	@23
+;_DSA_DeleteAllItems	@30
+;_DSA_DeleteItem	@29
+;_DSA_Destroy	@24
+;_DSA_DestroyCallback	@57
+;_DSA_GetItem	@25
+;_DSA_GetItemPtr	@26
+;_DSA_InsertItem	@27
+;_DSA_SetItem	@28
+;_DestroyPropertySheetPage	@20
+;_DrawStatusTextW	@21
+;InitCapEdit
+;_InitCommonControls	@1
+;_InitCommonControlsEx	@2
+;InitDateClasses
+;InitProgressClass
+;InitReBarClass
+;InitStatusClass
+;InitToolTipsClass
+;InitToolbarClass
+;InitTrackBar
+;InitUpDownClass
+;_InvertRect	@22
+;_IsCommandBarMessage	@13
+;_PropertySheetW	@18
+;_StrToIntW	@34
+;_Str_SetPtrW	@33
+;Tab_Init

reactos/lib/commctrl
commctrl.edf added at 1.1
diff -N commctrl.edf
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ commctrl.edf	4 Mar 2004 18:54:21 -0000	1.1
@@ -0,0 +1,60 @@
+LIBRARY commctrl.dll
+EXPORTS
+;Header_Init@@YAHPAUHINSTANCE__@@@Z
+;ListView_Init@@YAHPAUHINSTANCE__@@@Z
+;TV_Init@@YAHPAUHINSTANCE__@@@Z
+;_CenterWindow	@35
+;_CommandBands_AddAdornments	@39
+;_CommandBands_AddBands	@37
+;_CommandBands_Create	@36
+;_CommandBands_GetCommandBar	@38
+;_CommandBands_GetRestoreInformation	@41
+;_CommandBands_Show	@40
+_CommandBar_AddAdornments	@10
+;_CommandBar_AddBitmap	@5
+;_CommandBar_AlignAdornments	@44
+_CommandBar_Create	@3
+;_CommandBar_DrawMenuBar	@43
+;_CommandBar_GetItemWindow	@11
+;_CommandBar_GetMenu	@9
+;_CommandBar_Height	@12
+;_CommandBar_InsertComboBox	@6
+;_CommandBar_InsertControl	@7
+_CommandBar_InsertMenubar	@8
+;_CommandBar_InsertMenubarEx	@42
+_CommandBar_Show	@4
+;_CreatePropertySheetPageW	@19
+;_CreateStatusWindowW	@17
+;_CreateToolbar	@15
+;_CreateToolbarEx	@16
+;_CreateUpDownControl	@14
+;_DPA_Destroy	@31
+;_DPA_GetPtr	@32
+;_DSA_Create	@23
+;_DSA_DeleteAllItems	@30
+;_DSA_DeleteItem	@29
+;_DSA_Destroy	@24
+;_DSA_DestroyCallback	@57
+;_DSA_GetItem	@25
+;_DSA_GetItemPtr	@26
+;_DSA_InsertItem	@27
+;_DSA_SetItem	@28
+;_DestroyPropertySheetPage	@20
+;_DrawStatusTextW	@21
+;InitCapEdit
+;_InitCommonControls	@1
+;_InitCommonControlsEx	@2
+;InitDateClasses
+;InitProgressClass
+;InitReBarClass
+;InitStatusClass
+;InitToolTipsClass
+;InitToolbarClass
+;InitTrackBar
+;InitUpDownClass
+;_InvertRect	@22
+;_IsCommandBarMessage	@13
+;_PropertySheetW	@18
+;_StrToIntW	@34
+;_Str_SetPtrW	@33
+;Tab_Init

reactos/lib/commctrl
commctrl.rc added at 1.1
diff -N commctrl.rc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ commctrl.rc	4 Mar 2004 18:54:21 -0000	1.1
@@ -0,0 +1,38 @@
+#include <defines.h>
+#include <reactos/resource.h>
+
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+
+VS_VERSION_INFO VERSIONINFO
+	FILEVERSION	RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD
+	PRODUCTVERSION	RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD	
+	FILEFLAGSMASK	0x3fL
+#ifdef _DEBUG
+	FILEFLAGS	0x1L
+#else
+	FILEFLAGS	0x0L
+#endif
+	FILEOS		0x40004L
+	FILETYPE	0x2L
+	FILESUBTYPE	0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904b0"
+        BEGIN
+            VALUE "CompanyName",	RES_STR_COMPANY_NAME
+            VALUE "FileDescription",	"ReactOS WinCE Compatiblity Layer\0"
+            VALUE "FileVersion",	RES_STR_FILE_VERSION
+            VALUE "InternalName",	"coredll\0"
+            VALUE "LegalCopyright",	RES_STR_LEGAL_COPYRIGHT
+            VALUE "OriginalFilename",	"coredll.dll\0"
+            VALUE "ProductName",	RES_STR_PRODUCT_NAME
+            VALUE "ProductVersion",	RES_STR_PRODUCT_VERSION
+        END
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x409, 1200
+    END
+END
+

reactos/lib/commctrl
commctrl_main.c added at 1.1
diff -N commctrl_main.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ commctrl_main.c	4 Mar 2004 18:54:21 -0000	1.1
@@ -0,0 +1,68 @@
+/*
+ * ReactOS-CE Common Controls
+ *
+ * Copyright 2004 Steven Edwards
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * TODO:
+ * ATM this is just a dummy forwarding dll for the WinCE API to Win32 API
+ * When you exit a simple WinCE app on Windows or on ReactOS it causes
+ * a program error or unhandled exception probl'y because we dont handle
+ * threading and process attaching/detaching like we should here.
+ *
+ * There will be some parts of the WinCE API that cant just be forwarded to
+ * the Win32 API as paramater names or types may differ. In that case you will
+ * need to copy the Win32 implementation and make the needed changes.
+ */
+
+#include <debug.h>
+#include "windows.h"
+
+BOOL STDCALL
+DllMain(HANDLE hDll,
+	DWORD dwReason,
+	LPVOID lpReserved)
+{
+   return TRUE;
+}
+
+BOOL STDCALL 
+_CommandBar_Create()
+{
+DPRINT1("CommandBar_Create called\n");
+   return TRUE;
+}
+
+BOOL STDCALL 
+_CommandBar_Show()
+{
+DPRINT1("CommandBar_Show called\n");
+   return TRUE;
+}
+
+BOOL STDCALL
+_CommandBar_InsertMenubar()
+{
+DPRINT1("CommandBar_InsertMenubar called\n");
+   return TRUE;
+}
+
+BOOL STDCALL 
+_CommandBar_AddAdornments()
+{
+DPRINT1("CommandBar_AddAdornments called\n");
+   return TRUE;
+}

reactos/lib/commctrl
Makefile added at 1.1
diff -N Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Makefile	4 Mar 2004 18:54:21 -0000	1.1
@@ -0,0 +1,19 @@
+
+PATH_TO_TOP = ../..
+
+TARGET_TYPE = dynlink
+
+TARGET_NAME = commctrl
+
+TARGET_BASE=0x75e60000
+
+# require os code to explicitly request A/W version of structs/functions
+TARGET_CFLAGS += -D_DISABLE_TIDENTS -Wall -Werror
+
+TARGET_SDKLIBS = ntdll.a kernel32.a
+
+TARGET_OBJECTS = commctrl_main.o
+
+include $(PATH_TO_TOP)/rules.mak
+
+include $(TOOLS_PATH)/helper.mk
CVSspam 0.2.8