Added DrawStatusText32AW() and CreateStatusWindow32AW().
diff --git a/dlls/comctl32/commctrl.c b/dlls/comctl32/commctrl.c
index 6f0d2d5..ef26815 100644
--- a/dlls/comctl32/commctrl.c
+++ b/dlls/comctl32/commctrl.c
@@ -11,10 +11,12 @@
#include "commctrl.h"
#include "animate.h"
#include "comboex.h"
+#include "datetime.h"
#include "header.h"
#include "hotkey.h"
#include "ipaddress.h"
#include "listview.h"
+#include "monthcal.h"
#include "nativefont.h"
#include "pager.h"
#include "progress.h"
@@ -26,6 +28,7 @@
#include "trackbar.h"
#include "treeview.h"
#include "updown.h"
+#include "winversion.h"
#include "debug.h"
#include "winerror.h"
@@ -82,10 +85,12 @@
/* unregister all common control classes */
ANIMATE_Unregister ();
COMBOEX_Unregister ();
+ DATETIME_Unregister ();
HEADER_Unregister ();
HOTKEY_Unregister ();
IPADDRESS_Unregister ();
LISTVIEW_Unregister ();
+ MONTHCAL_Unregister ();
NATIVEFONT_Unregister ();
PAGER_Unregister ();
PROGRESS_Unregister ();
@@ -286,7 +291,7 @@
/***********************************************************************
- * DrawStatusText32A [COMCTL32.5][COMCTL32.27]
+ * DrawStatusText32A [COMCTL32.5]
*
* Draws text with borders, like in a status bar.
*
@@ -350,7 +355,36 @@
/***********************************************************************
- * CreateStatusWindow32A [COMCTL32.6][COMCTL32.21] Creates a status bar
+ * DrawStatusText32AW [COMCTL32.27]
+ *
+ * Draws text with borders, like in a status bar.
+ *
+ * PARAMS
+ * hdc [I] handle to the window's display context
+ * lprc [I] pointer to a rectangle
+ * text [I] pointer to the text
+ * style [I]
+ *
+ * RETURNS
+ * No return value.
+ *
+ * NOTES
+ * Calls DrawStatusText32A() or DrawStatusText32W().
+ */
+
+VOID WINAPI
+DrawStatusText32AW (HDC32 hdc, LPRECT32 lprc, LPVOID text, UINT32 style)
+{
+ if (VERSION_OsIsUnicode())
+ DrawStatusText32W (hdc, lprc, (LPCWSTR)text, style);
+ DrawStatusText32A (hdc, lprc, (LPCSTR)text, style);
+}
+
+
+/***********************************************************************
+ * CreateStatusWindow32A [COMCTL32.6]
+ *
+ * Creates a status bar
*
* PARAMS
* style [I]
@@ -390,7 +424,7 @@
HWND32 WINAPI
CreateStatusWindow32W (INT32 style, LPCWSTR text, HWND32 parent, UINT32 wid)
{
- return CreateWindow32W((LPCWSTR)STATUSCLASSNAME32W, text, style,
+ return CreateWindow32W(STATUSCLASSNAME32W, text, style,
CW_USEDEFAULT32, CW_USEDEFAULT32,
CW_USEDEFAULT32, CW_USEDEFAULT32,
parent, wid, 0, 0);
@@ -398,6 +432,29 @@
/***********************************************************************
+ * CreateStatusWindow32AW [COMCTL32.21] Creates a status bar control
+ *
+ * PARAMS
+ * style [I]
+ * text [I]
+ * parent [I] handle to the parent window
+ * wid [I] control id of the status bar
+ *
+ * RETURNS
+ * Success: handle to the control
+ * Failure: 0
+ */
+
+HWND32 WINAPI
+CreateStatusWindow32AW (INT32 style, LPVOID text, HWND32 parent, UINT32 wid)
+{
+ if (VERSION_OsIsUnicode())
+ return CreateStatusWindow32W (style, (LPCWSTR)text, parent, wid);
+ return CreateStatusWindow32A (style, (LPCSTR)text, parent, wid);
+}
+
+
+/***********************************************************************
* CreateUpDownControl [COMCTL32.16] Creates an Up-Down control
*
* PARAMS
@@ -509,8 +566,8 @@
/* advanced classes - not included in Win95 */
case ICC_DATE_CLASSES:
- FIXME (commctrl, "No month calendar class implemented!\n");
- FIXME (commctrl, "No date and time picker class implemented!\n");
+ MONTHCAL_Register ();
+ DATETIME_Register ();
break;
case ICC_USEREX_CLASSES: