CB_SETCURSEL should not generate another listbox event after updating
[wine] / dlls / ole32 / ole2nls.c
1 /*
2  *      OLE2NLS library
3  *
4  *      Copyright 1995  Martin von Loewis
5  *      Copyright 1998  David Lee Lambert
6  *      Copyright 2000  Julio César Gázquez
7  */
8 #include <string.h>
9 #include <stdio.h>
10 #include <ctype.h>
11 #include <stdlib.h>
12 #include <locale.h>
13 #include "windef.h"
14 #include "wingdi.h"
15 #include "winuser.h"
16 #include "heap.h"
17 #include "options.h"
18 #include "winver.h"
19 #include "winnls.h"
20 #include "winreg.h"
21 #include "winerror.h"
22 #include "debugtools.h"
23 #include "main.h"
24
25 DEFAULT_DEBUG_CHANNEL(ole);
26
27 static LPVOID lpNLSInfo = NULL;
28
29 /******************************************************************************
30  *              GetLocaleInfo16 [OLE2NLS.5]
31  * Is the last parameter really WORD for Win16?
32  */
33 INT16 WINAPI GetLocaleInfo16(LCID lcid,LCTYPE LCType,LPSTR buf,INT16 len)
34 {
35         return GetLocaleInfoA(lcid,LCType,buf,len);
36 }
37
38 /******************************************************************************
39  *              GetStringType16 [OLE2NLS.7]
40  */
41 BOOL16 WINAPI GetStringType16(LCID locale,DWORD dwInfoType,LPCSTR src,
42                               INT16 cchSrc,LPWORD chartype)
43 {
44         return GetStringTypeExA(locale,dwInfoType,src,cchSrc,chartype);
45 }
46
47 /***********************************************************************
48  *           CompareString16       (OLE2NLS.8)
49  */
50 UINT16 WINAPI CompareString16(DWORD lcid,DWORD fdwStyle,
51                               LPCSTR s1,DWORD l1,LPCSTR s2,DWORD l2)
52 {
53         return (UINT16)CompareStringA(lcid,fdwStyle,s1,l1,s2,l2);
54 }
55
56 /******************************************************************************
57  *      RegisterNLSInfoChanged  [OLE2NLS.10]
58  */
59 BOOL16 WINAPI RegisterNLSInfoChanged16(LPVOID/*FIXME*/ lpNewNLSInfo)
60 {
61         FIXME("Fully implemented, but doesn't effect anything.\n");
62
63         if (!lpNewNLSInfo) {
64                 lpNLSInfo = NULL;
65                 return TRUE;
66         }
67         else {
68                 if (!lpNLSInfo) {
69                         lpNLSInfo = lpNewNLSInfo;
70                         return TRUE;
71                 }
72         }
73
74         return FALSE; /* ptr not set */
75
76