* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef __USE_W32API
-#define __USE_W32API
-#endif
-
-#include "user32.h"
+#define __WINE__
+#include <user32.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
* FIXME: roll up in Netscape 3.01.
*/
-#include "user32.h"
+#define __WINE__
+#include <user32.h>
#include <stdarg.h>
#include <string.h>
*
*/
-#ifndef __USE_W32API
-#define __USE_W32API
-#endif
-
-#include "user32.h"
+#define __WINE__
+#include <user32.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "user32.h"
-#define NDEBUG
+
+#define __WINE__
+#include <user32.h>
#include <string.h>
#include <stdlib.h>
#include "controls.h"
* NOTES: Adapted from Wine
*/
-#include "user32.h"
-#include <wchar.h>
-#include "win32k/ntuser.h"
+#include <user32.h>
static void RegisterBuiltinClass(const struct builtin_class_descr *Descr)
{
/* INCLUDES *******************************************************************/
-#include "user32.h"
-#include <debug.h>
-#include <draw.h>
-#include <stdlib.h>
-#include <string.h>
+#include <user32.h>
#include <oleacc.h>
-#include <rosrtl/minmax.h>
/* GLOBAL VARIABLES ***********************************************************/
return si.nMin;
}
- Pos = RtlRosMax(0, Pos - ScrollBarInfo->dxyLineButton);
+ Pos = Pos - ScrollBarInfo->dxyLineButton;
+ if (Pos < 0)
+ {
+ Pos = 0;
+ }
if (Pixels < Pos)
{
Pos = Pixels;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "user32.h"
+#include <user32.h>
#ifndef __REACTOS__
WINE_DEFAULT_DEBUG_CHANNEL(static);
* FILE: include/user32.h
* PURPOSE: Global user32 definitions
*/
+
+#ifndef USER32_H
+#define USER32_H
+
+#include <ctype.h>
+#include <stdio.h>
+#include <limits.h>
#include <windows.h>
+#include <windowsx.h>
#define NTOS_MODE_USER
#include <ntos.h>
#include <win32k/win32k.h>
-
+#include <win32k/callback.h>
+#include "accel.h"
+#include "cursor.h"
+#ifndef __WINE__
+#include "debug.h"
+#endif
+#include "draw.h"
+#include "menu.h"
+#include "message.h"
#include "regcontrol.h"
+#include "resource.h"
+#include "scroll.h"
+#include "strpool.h"
+#include "window.h"
+#include "winpos.h"
+#include "winsta.h"
extern HINSTANCE User32Instance;
#define NtUserEnableProcessWindowGhosting(bEnable) \
NtUserCallOneParam((DWORD)bEnable, ONEPARAM_ROUTINE_ENABLEPROCWNDGHSTING)
+#endif /* USER32_H */
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef __USE_W32API
-#define __USE_W32API
-#endif
-
#include "wine/config.h"
#include "wine/port.h"
* 06-06-2001 CSH Created
*/
-#include "user32.h"
-#include "winsta.h"
-#include <string.h>
-#include <debug.h>
+#include <user32.h>
#include <rosrtl/devmode.h>
#include <rosrtl/logfont.h>
-#include <malloc.h>
-#include <math.h>
/*
* @implemented
/* INCLUDES ******************************************************************/
-#include "user32.h"
+#include <user32.h>
#include <rosrtl/devmode.h>
-#include <win32k/ntuser.h>
-#define NDEBUG
-#include <debug.h>
/* FUNCTIONS *****************************************************************/
-#include "user32.h"
-#include "menu.h"
-#include "message.h"
-#include "accel.h"
-#include "strpool.h"
-#include <win32k/callback.h>
-
-#include <debug.h>
+#include <user32.h>
/* FIXME: Belongs to some header. */
WINBOOL STDCALL GdiDllInitialize(HANDLE, DWORD, LPVOID);
* PROGRAMMER: Eric Kohl (ekohl@rz-online.de)
*/
-#include "user32.h"
+#include <user32.h>
#include <ntdll/csr.h>
/*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* Remove this once w32api conversion is done */
-#ifndef __USE_W32API
-#define __USE_W32API
-#define _WIN32_IE 0x600
-#define _WIN32_WINNT 0x501
-#define WINVER 0x501
-#define __need_offsetof
-#endif /* __USE_W32API */
-
#include <stdarg.h>
#include <string.h>
#include <stdlib.h> /* abs() */
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <debug.h>
+#include <user32.h>
#include <ntdll/csr.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <debug.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
-#include "user32.h"
-#include <string.h>
+#include <user32.h>
/* FIXME: Currently IsBadWritePtr is implemented using VirtualQuery which
does not seem to work properly for stack address space. */
// strpool.c
-#include "user32.h"
-#include <strpool.h>
-#include <string.h>
+#include <user32.h>
typedef struct tagHEAP_STRING_POOLA
{
* 08-F05-2001 CSH Created
*/
-#include "user32.h"
-#include <debug.h>
-#include <string.h>
-#include <mmsystem.h>
+#include <user32.h>
#ifdef __USE_W32API
typedef PVOID LPIMEPROW, LPIMEPROA;
#endif
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <debug.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <string.h>
-#include <debug.h>
+#include <user32.h>
/* WinHelp internal structure */
typedef struct
* 04-06-2001 CSH Created
*/
-#include "user32.h"
-#include <debug.h>
-
+#include <user32.h>
/*
* @implemented
* NOTES: Adapted from Wine
*/
-#include "user32.h"
-#include <stdarg.h>
-#include <string.h>
-#include <stdio.h>
-#include "strpool.h"
+#include <user32.h>
#define WPRINTF_LEFTALIGN 0x0001 /* Align output on the left ('-' prefix) */
#define WPRINTF_PREFIX_HEX 0x0002 /* Prefix hex with 0x ('#' prefix) */
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include "accel.h"
-#include <win32k/ntuser.h>
+#include <user32.h>
/* this is the 8 byte accel struct used in Win32 resources (internal only) */
typedef struct
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <string.h>
-#include <debug.h>
-#include <stdlib.h>
+#include <user32.h>
/*forward declerations... actualy in user32\windows\icon.c but usful here****/
HICON ICON_CreateCursorFromData(HDC hDC, PVOID ImageData, ICONIMAGE* IconImage, int cxDesired, int cyDesired, int xHotspot, int yHotspot);
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <debug.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
* 09-05-2001 CSH Created
*/
-#include "user32.h"
-#include <string.h>
-#include <stdlib.h>
-#include <debug.h>
-#include <window.h>
-#include <strpool.h>
-
+#include <user32.h>
static BOOL GetClassInfoExCommon(
HINSTANCE hInst,
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <strpool.h>
-#define NDEBUG
-#include <debug.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <string.h>
-#include <debug.h>
+#include <user32.h>
#undef CopyCursor
HBITMAP
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <debug.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <windowsx.h>
-#include <window.h>
-#include <string.h>
-#include <cursor.h>
-#include <menu.h>
-#include <scroll.h>
-#include <winpos.h>
-
-#define NDEBUG
-#include <debug.h>
+#include <user32.h>
#ifndef WM_SETVISIBLE
#define WM_SETVISIBLE 9
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <limits.h>
-#include <debug.h>
+#include <user32.h>
/* MACROS/DEFINITIONS ********************************************************/
#undef SENDMSG
}
-/* Hack - We dont define this anywhere and we shouldn't
- * Its only used to port buggy WINE code in to our buggy code.
- * Make it go away - sedwards
- */
-/* strdup macros */
-/* DO NOT USE IT!! it will go away soon */
-inline static LPSTR HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str )
-{
- LPSTR ret;
- INT len;
-
- if (!str) return NULL;
- len = WideCharToMultiByte( CP_ACP, 0, str, -1, NULL, 0, NULL, NULL );
- ret = RtlAllocateHeap(GetProcessHeap(), flags, len );
- if(ret) WideCharToMultiByte( CP_ACP, 0, str, -1, ret, len, NULL, NULL );
- return ret;
-}
-
/**********************************************************************
* DIALOG_DlgDirListW
*
{
if (spec)
{
- LPSTR specA = HEAP_strdupWtoA( GetProcessHeap(), 0, spec );
- INT ret = DIALOG_DlgDirList( hDlg, specA, idLBox, idStatic,
- attrib, combo );
+ LPSTR specA;
+ INT ret;
+
+ HEAP_strdupWtoA ( &specA, spec, lstrlenW(spec) );
+ ret = DIALOG_DlgDirList( hDlg, specA, idLBox, idStatic,
+ attrib, combo );
MultiByteToWideChar( CP_ACP, 0, specA, -1, spec, 0x7fffffff );
- HeapFree( GetProcessHeap(), 0, specA );
+ HEAP_free( specA );
return ret;
}
return DIALOG_DlgDirList( hDlg, NULL, idLBox, idStatic, attrib, combo );
/* INCLUDES *******************************************************************/
-#ifndef __USE_W32API
-#define __USE_W32API
-#define _WIN32_WINNT 0x0500
-#define WINVER 0x0500
-#endif
-
-#include <windows.h>
-#include <string.h>
-#include <wine/unicode.h>
#include <user32.h>
-#include <debug.h>
/* GLOBALS *******************************************************************/
if (unicode)
nCount = lstrlenW((WCHAR*)lpData);
else
- nCount = strlen((CHAR*)lpData);
+ nCount = lstrlenA((CHAR*)lpData);
}
if (! nWidth || ! nHeight)
if((opcode == DST_TEXT || opcode == DST_PREFIXTEXT) && !len) /* The string is '\0' terminated */
{
if(unicode)
- len = strlenW((LPWSTR)lp);
+ len = lstrlenW((LPWSTR)lp);
else
- len = strlen((LPSTR)lp);
+ len = lstrlenA((LPSTR)lp);
}
/* Find out what size the image has if not given by caller */
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <string.h>
-#include <debug.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <win32k/callback.h>
-#define NDEBUG
-#include <debug.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <string.h>
-#include <stdlib.h>
-#include <debug.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <debug.h>
-#include <wchar.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
*
*/
+#define __WINE__
+
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <ctype.h>
-#include <string.h>
-#include <draw.h>
-#include <window.h>
-#include <strpool.h>
-#include <win32k/callback.h>
+#include <user32.h>
#include "../controls/controls.h"
-#define NDEBUG
-#include <debug.h>
-
/* internal popup menu window messages */
#define MM_SETMENUHANDLE (WM_USER + 0)
#define MM_GETMENUHANDLE (WM_USER + 1)
* 06-06-2001 CSH Created
*/
-#include "user32.h"
-#include <string.h>
-#include <debug.h>
-#include <win32k/callback.h>
-#include <message.h>
+#include <user32.h>
/* DDE message exchange
*
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <debug.h>
-#include "resource.h"
-
-#include <mmsystem.h>
+#include <user32.h>
/* DEFINES *******************************************************************/
#define __REACTOS__
*/
-/*
- * Use w32api headers
- */
-/*
-#define __USE_W32API
-#define _WIN32_WINNT 0x0501
-*/
-
-#include <windows.h>
-#include <windowsx.h>
-#include <string.h>
-#include <menu.h>
-#include <winpos.h>
#include <user32.h>
-#include "window.h"
-
-#define NDEBUG
-#include <debug.h>
#define HAS_DLGFRAME(Style, ExStyle) \
(((ExStyle) & WS_EX_DLGMODALFRAME) || \
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <resource.h>
-#define NDEBUG
-#include <debug.h>
+#include <user32.h>
static HBRUSH FrameBrushes[13];
static HBITMAP hHatch;
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <strpool.h>
-#include <debug.h>
+#include <user32.h>
typedef struct _PROPLISTITEM
{
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <debug.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <ctype.h>
-#include <debug.h>
-
+#include <user32.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <window.h>
-#include <string.h>
-#include <strpool.h>
-#include <win32k/callback.h>
-#define NDEBUG
-#include <debug.h>
+#include <user32.h>
BOOL ControlsInitialized = FALSE;
/* INCLUDES ******************************************************************/
-#include "user32.h"
-#include <window.h>
-#include <win32k/callback.h>
-#include <window.h>
-#define NDEBUG
-#include <debug.h>
+#include <user32.h>
/* FUNCTIONS *****************************************************************/