Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
2682bc24
Commit
2682bc24
authored
Nov 27, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few dependencies on 16-bit or internal functions. Fixed a few
warnings.
parent
62469b21
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
114 additions
and
124 deletions
+114
-124
desktop.c
controls/desktop.c
+1
-1
icontitle.c
controls/icontitle.c
+2
-2
static.c
controls/static.c
+7
-38
Makefile.in
dlls/Makefile.in
+1
-1
filedlg95.c
dlls/commdlg/filedlg95.c
+1
-1
wnet.c
dlls/mpr/wnet.c
+5
-7
shell32_main.c
dlls/shell32/shell32_main.c
+12
-6
Makefile.in
dlls/shlwapi/Makefile.in
+0
-1
string.c
dlls/shlwapi/string.c
+5
-16
network.c
dlls/user/network.c
+5
-7
Makefile.in
dlls/win32s/Makefile.in
+0
-1
w32skernel.c
dlls/win32s/w32skernel.c
+11
-0
w32skrnl.spec
dlls/win32s/w32skrnl.spec
+1
-1
w32sys.c
dlls/win32s/w32sys.c
+34
-0
defwnd.c
windows/defwnd.c
+2
-2
mdi.c
windows/mdi.c
+2
-2
msgbox.c
windows/msgbox.c
+4
-8
nonclient.c
windows/nonclient.c
+21
-21
syscolor.c
windows/syscolor.c
+0
-9
No files found.
controls/desktop.c
View file @
2682bc24
...
...
@@ -169,7 +169,7 @@ static inline LRESULT WINAPI DesktopWndProc_locked( WND *wndPtr, UINT message,
ExitWindows16
(
0
,
0
);
case
WM_SETCURSOR
:
return
(
LRESULT
)
SetCursor
16
(
LoadCursor16
(
0
,
IDC_ARROW16
)
);
return
(
LRESULT
)
SetCursor
(
LoadCursorA
(
0
,
IDC_ARROWA
)
);
}
return
0
;
...
...
controls/icontitle.c
View file @
2682bc24
...
...
@@ -15,8 +15,8 @@
#include "win.h"
#include "heap.h"
BOOL
bMultiLineTitle
;
HFONT
hIconTitleFont
;
static
BOOL
bMultiLineTitle
;
static
HFONT
hIconTitleFont
;
/***********************************************************************
* ICONTITLE_Init
...
...
controls/static.c
View file @
2682bc24
...
...
@@ -113,28 +113,10 @@ static HBITMAP16 STATIC_SetBitmap( WND *wndPtr, HBITMAP16 hBitmap )
*
* Load the icon for an SS_ICON control.
*/
static
HICON
16
STATIC_LoadIcon
(
WND
*
wndPtr
,
LPCSTR
name
)
static
HICON
STATIC_LoadIcon
(
WND
*
wndPtr
,
LPCSTR
name
)
{
HICON16
hicon
;
if
(
wndPtr
->
flags
&
WIN_ISWIN32
)
{
if
(
!
HIWORD
(
wndPtr
->
hInstance
))
{
LPSTR
segname
=
SEGPTR_STRDUP
(
name
);
hicon
=
LoadIcon16
(
wndPtr
->
hInstance
,
SEGPTR_GET
(
segname
)
);
SEGPTR_FREE
(
segname
);
}
else
hicon
=
LoadIconA
(
wndPtr
->
hInstance
,
name
);
}
else
{
LPSTR
segname
=
SEGPTR_STRDUP
(
name
);
if
(
HIWORD
(
wndPtr
->
hInstance
))
FIXME
(
"win16 window class, but win32 hinstance??
\n
"
);
hicon
=
LoadIcon16
(
wndPtr
->
hInstance
,
SEGPTR_GET
(
segname
)
);
SEGPTR_FREE
(
segname
);
}
if
(
!
hicon
)
hicon
=
LoadIconA
(
0
,
name
);
HICON
hicon
=
LoadIconA
(
wndPtr
->
hInstance
,
name
);
if
(
!
hicon
)
hicon
=
LoadIconA
(
0
,
name
);
return
hicon
;
}
...
...
@@ -143,24 +125,11 @@ static HICON16 STATIC_LoadIcon( WND *wndPtr, LPCSTR name )
*
* Load the bitmap for an SS_BITMAP control.
*/
static
HBITMAP
16
STATIC_LoadBitmap
(
WND
*
wndPtr
,
LPCSTR
name
)
static
HBITMAP
STATIC_LoadBitmap
(
WND
*
wndPtr
,
LPCSTR
name
)
{
HBITMAP16
hbitmap
;
if
(
wndPtr
->
flags
&
WIN_ISWIN32
)
{
hbitmap
=
LoadBitmapA
(
wndPtr
->
hInstance
,
name
);
if
(
!
hbitmap
)
/* Try OEM icon (FIXME: is this right?) */
hbitmap
=
LoadBitmapA
(
0
,
name
);
}
else
{
LPSTR
segname
=
SEGPTR_STRDUP
(
name
);
hbitmap
=
LoadBitmap16
(
wndPtr
->
hInstance
,
SEGPTR_GET
(
segname
)
);
if
(
!
hbitmap
)
/* Try OEM icon (FIXME: is this right?) */
hbitmap
=
LoadBitmapA
(
0
,
segname
);
SEGPTR_FREE
(
segname
);
}
HBITMAP
hbitmap
=
LoadBitmapA
(
wndPtr
->
hInstance
,
name
);
if
(
!
hbitmap
)
/* Try OEM icon (FIXME: is this right?) */
hbitmap
=
LoadBitmapA
(
0
,
name
);
return
hbitmap
;
}
...
...
dlls/Makefile.in
View file @
2682bc24
...
...
@@ -444,7 +444,7 @@ winmm/midimap/libmidimap.drv.so: libwinmm.so libuser32.so libkernel32.so libntdl
winmm/wavemap/libmsacm.drv.so
:
libwinmm.so libuser32.so libkernel32.so libntdll.so
winmm/wineoss/libwineoss.drv.so
:
libwinmm.so libuser32.so libkernel32.so libntdll.so
winsock/libws2_32.so
:
libuser32.so libkernel32.so libntdll.so
winspool/libwinspool.drv.so
:
libgdi32.so libadvapi32.so libkernel32.so libntdll.so
winspool/libwinspool.drv.so
:
lib
user32.so lib
gdi32.so libadvapi32.so libkernel32.so libntdll.so
wow32/libwow32.so
:
libkernel32.so
wsock32/libwsock32.so
:
libws2_32.so libkernel32.so libntdll.so
x11drv/libx11drv.so
:
libuser32.so libgdi32.so libkernel32.so
...
...
dlls/commdlg/filedlg95.c
View file @
2682bc24
...
...
@@ -1290,7 +1290,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
if
(
!
COMDLG32_SHGetPathFromIDListA
(
fodInfos
->
ShellInfos
.
pidlAbsCurrent
,
lpstrPathAndFile
))
{
/* we are in a special folder, default to desktop */
if
(
FAILED
(
COMDLG32_SHGetFolderPathA
(
hwnd
,
CSIDL_DESKTOPDIRECTORY
|
CSIDL_FLAG_CREATE
,
NULL
,
0
,
lpstrPathAndFile
)))
if
(
FAILED
(
COMDLG32_SHGetFolderPathA
(
hwnd
,
CSIDL_DESKTOPDIRECTORY
|
CSIDL_FLAG_CREATE
,
0
,
0
,
lpstrPathAndFile
)))
{
/* last fallback */
GetCurrentDirectoryA
(
MAX_PATH
,
lpstrPathAndFile
);
...
...
dlls/mpr/wnet.c
View file @
2682bc24
...
...
@@ -340,11 +340,9 @@ DWORD WINAPI WNetGetConnectionA( LPCSTR lpLocalName,
if
(
lpLocalName
[
1
]
==
':'
)
{
int
drive
=
toupper
(
lpLocalName
[
0
])
-
'A'
;
switch
(
DRIVE_GetType
(
driv
e
))
switch
(
GetDriveTypeA
(
lpLocalNam
e
))
{
case
TYPE_INVALID
:
return
WN_BAD_LOCALNAME
;
case
TYPE_NETWORK
:
case
DRIVE_REMOTE
:
path
=
DRIVE_GetLabel
(
drive
);
if
(
strlen
(
path
)
+
1
>
*
lpBufferSize
)
{
...
...
@@ -354,9 +352,9 @@ DWORD WINAPI WNetGetConnectionA( LPCSTR lpLocalName,
strcpy
(
lpRemoteName
,
path
);
*
lpBufferSize
=
strlen
(
lpRemoteName
)
+
1
;
return
WN_SUCCESS
;
case
TYPE_FLOPPY
:
case
TYPE_H
D
:
case
TYP
E_CDROM
:
case
DRIVE_REMOVABLE
:
case
DRIVE_FIXE
D
:
case
DRIV
E_CDROM
:
TRACE
(
"file is local
\n
"
);
return
WN_NOT_CONNECTED
;
default
:
...
...
dlls/shell32/shell32_main.c
View file @
2682bc24
...
...
@@ -358,7 +358,7 @@ DWORD WINAPI SHGetFileInfoAW(
HICON
WINAPI
DuplicateIcon
(
HINSTANCE
hInstance
,
HICON
hIcon
)
{
ICONINFO
IconInfo
;
HICON
hDupIcon
=
NULL
;
HICON
hDupIcon
=
0
;
TRACE
(
"(%04x, %04x)
\n
"
,
hInstance
,
hIcon
);
...
...
@@ -471,7 +471,7 @@ typedef struct
#define DROP_FIELD_TOP (-15)
#define DROP_FIELD_HEIGHT 15
extern
HICON
hIconTitleFont
;
static
HICON
hIconTitleFont
;
static
BOOL
__get_dropline
(
HWND
hWnd
,
LPRECT
lprect
)
{
HWND
hWndCtl
=
GetDlgItem
(
hWnd
,
IDC_WINE_TEXT
);
...
...
@@ -616,6 +616,12 @@ BOOL WINAPI AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
info
->
szOtherStuff
);
hWndCtl
=
GetDlgItem
(
hWnd
,
IDC_LISTBOX
);
SendMessageA
(
hWndCtl
,
WM_SETREDRAW
,
0
,
0
);
if
(
!
hIconTitleFont
)
{
LOGFONTA
logFont
;
SystemParametersInfoA
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
hIconTitleFont
=
CreateFontIndirectA
(
&
logFont
);
}
SendMessageA
(
hWndCtl
,
WM_SETFONT
,
hIconTitleFont
,
0
);
while
(
*
pstr
)
{
SendMessageA
(
hWndCtl
,
LB_ADDSTRING
,
(
WPARAM
)
-
1
,
(
LPARAM
)
*
pstr
);
...
...
@@ -642,7 +648,7 @@ BOOL WINAPI AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
case
WM_LBTRACKPOINT
:
hWndCtl
=
GetDlgItem
(
hWnd
,
IDC_LISTBOX
);
if
(
(
INT16
)
GetKeyState
16
(
VK_CONTROL
)
<
0
)
if
(
(
INT16
)
GetKeyState
(
VK_CONTROL
)
<
0
)
{
if
(
DragDetect
(
hWndCtl
,
*
((
LPPOINT
)
&
lParam
)
)
)
{
INT
idx
=
SendMessageA
(
hWndCtl
,
LB_GETCURSEL
,
0
,
0
);
if
(
idx
!=
-
1
)
...
...
@@ -651,7 +657,7 @@ BOOL WINAPI AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
char
*
pstr
=
(
char
*
)
GlobalLock16
(
hMemObj
);
if
(
pstr
)
{
HCURSOR
16
hCursor
=
LoadCursor16
(
0
,
MAKEINTRESOURCE16
(
OCR_DRAGOBJECT
)
);
{
HCURSOR
hCursor
=
LoadCursorA
(
0
,
MAKEINTRESOURCEA
(
OCR_DRAGOBJECT
)
);
SendMessageA
(
hWndCtl
,
LB_GETTEXT
,
(
WPARAM
)
idx
,
(
LPARAM
)
pstr
);
SendMessageA
(
hWndCtl
,
LB_DELETESTRING
,
(
WPARAM
)
idx
,
0
);
UpdateWindow
(
hWndCtl
);
...
...
@@ -746,7 +752,7 @@ BOOL WINAPI ShellAboutA( HWND hWnd, LPCSTR szApp, LPCSTR szOtherStuff,
info
.
szApp
=
szApp
;
info
.
szOtherStuff
=
szOtherStuff
;
info
.
hIcon
=
hIcon
;
if
(
!
hIcon
)
info
.
hIcon
=
LoadIcon
16
(
0
,
MAKEINTRESOURCE16
(
OIC_WINEICON
)
);
if
(
!
hIcon
)
info
.
hIcon
=
LoadIcon
A
(
0
,
MAKEINTRESOURCEA
(
OIC_WINEICON
)
);
return
DialogBoxIndirectParamA
(
GetWindowLongA
(
hWnd
,
GWL_HINSTANCE
),
template
,
hWnd
,
AboutDlgProc
,
(
LPARAM
)
&
info
);
}
...
...
@@ -772,7 +778,7 @@ BOOL WINAPI ShellAboutW( HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff,
info
.
szApp
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
szApp
);
info
.
szOtherStuff
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
szOtherStuff
);
info
.
hIcon
=
hIcon
;
if
(
!
hIcon
)
info
.
hIcon
=
LoadIcon
16
(
0
,
MAKEINTRESOURCE16
(
OIC_WINEICON
)
);
if
(
!
hIcon
)
info
.
hIcon
=
LoadIcon
A
(
0
,
MAKEINTRESOURCEA
(
OIC_WINEICON
)
);
ret
=
DialogBoxIndirectParamA
(
GetWindowLongA
(
hWnd
,
GWL_HINSTANCE
),
template
,
hWnd
,
AboutDlgProc
,
(
LPARAM
)
&
info
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPSTR
)
info
.
szApp
);
...
...
dlls/shlwapi/Makefile.in
View file @
2682bc24
...
...
@@ -4,7 +4,6 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
shlwapi
EXTRALIBS
=
-lwine_unicode
IMPORTS
=
ntdll
LDDLLFLAGS
=
@LDDLLFLAGS@
SYMBOLFILE
=
$(MODULE)
.tmp.o
...
...
dlls/shlwapi/string.c
View file @
2682bc24
...
...
@@ -439,7 +439,7 @@ LPSTR WINAPI StrFormatByteSizeA ( DWORD dw, LPSTR pszBuf, UINT cchBuf )
{
char
buf
[
64
];
TRACE
(
"%lx %p %i
\n
"
,
dw
,
pszBuf
,
cchBuf
);
if
(
dw
<
1024L
)
{
sprintf
(
buf
,
"%
3.1f bytes"
,
(
FLOAT
)
dw
);
{
sprintf
(
buf
,
"%
ld bytes"
,
dw
);
}
else
if
(
dw
<
1048576L
)
{
sprintf
(
buf
,
"%3.1f KB"
,
(
FLOAT
)
dw
/
1024
);
...
...
@@ -458,23 +458,12 @@ LPSTR WINAPI StrFormatByteSizeA ( DWORD dw, LPSTR pszBuf, UINT cchBuf )
* StrFormatByteSizeW [SHLWAPI]
*/
LPWSTR
WINAPI
StrFormatByteSizeW
(
DWORD
dw
,
LPWSTR
pszBuf
,
UINT
cchBuf
)
{
char
buf
[
64
];
TRACE
(
"%lx %p %i
\n
"
,
dw
,
pszBuf
,
cchBuf
);
if
(
dw
<
1024L
)
{
sprintf
(
buf
,
"%3.1f bytes"
,
(
FLOAT
)
dw
);
}
else
if
(
dw
<
1048576L
)
{
sprintf
(
buf
,
"%3.1f KB"
,
(
FLOAT
)
dw
/
1024
);
}
else
if
(
dw
<
1073741824L
)
{
sprintf
(
buf
,
"%3.1f MB"
,
(
FLOAT
)
dw
/
1048576L
);
}
else
{
sprintf
(
buf
,
"%3.1f GB"
,
(
FLOAT
)
dw
/
1073741824L
);
}
{
char
buf
[
64
];
StrFormatByteSizeA
(
dw
,
buf
,
sizeof
(
buf
)
);
if
(
!
MultiByteToWideChar
(
CP_ACP
,
0
,
buf
,
-
1
,
pszBuf
,
cchBuf
)
&&
cchBuf
)
pszBuf
[
cchBuf
-
1
]
=
0
;
return
pszBuf
;
return
pszBuf
;
}
/*************************************************************************
...
...
dlls/user/network.c
View file @
2682bc24
...
...
@@ -173,11 +173,9 @@ WORD WINAPI WNetGetConnection16( LPSTR lpLocalName,
if
(
lpLocalName
[
1
]
==
':'
)
{
int
drive
=
toupper
(
lpLocalName
[
0
])
-
'A'
;
switch
(
DRIVE_GetType
(
driv
e
))
switch
(
GetDriveTypeA
(
lpLocalNam
e
))
{
case
TYPE_INVALID
:
return
WN16_BAD_LOCALNAME
;
case
TYPE_NETWORK
:
case
DRIVE_REMOTE
:
path
=
DRIVE_GetLabel
(
drive
);
if
(
strlen
(
path
)
+
1
>
*
cbRemoteName
)
{
...
...
@@ -187,9 +185,9 @@ WORD WINAPI WNetGetConnection16( LPSTR lpLocalName,
strcpy
(
lpRemoteName
,
path
);
*
cbRemoteName
=
strlen
(
lpRemoteName
)
+
1
;
return
WN16_SUCCESS
;
case
TYPE_FLOPPY
:
case
TYPE_H
D
:
case
TYP
E_CDROM
:
case
DRIVE_REMOVABLE
:
case
DRIVE_FIXE
D
:
case
DRIV
E_CDROM
:
TRACE
(
"file is local
\n
"
);
return
WN16_NOT_CONNECTED
;
default
:
...
...
dlls/win32s/Makefile.in
View file @
2682bc24
...
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE
=
w32skrnl
SOVERSION
=
1.0
ALTNAMES
=
w32sys win32s16
IMPORTS
=
kernel32 ntdll
LDDLLFLAGS
=
@LDDLLFLAGS@
SYMBOLFILE
=
$(MODULE)
.tmp.o
...
...
dlls/win32s/w32skernel.c
View file @
2682bc24
...
...
@@ -9,6 +9,7 @@
#include "winbase.h"
#include "wine/windef16.h"
#include "thread.h"
/***********************************************************************
* GetWin32sDirectory
...
...
@@ -34,3 +35,13 @@ SEGPTR WINAPI _GetThunkBuff(void)
{
return
(
SEGPTR
)
NULL
;
}
/***********************************************************************
* GetCurrentTask32 (W32SKRNL.3)
*/
HTASK16
WINAPI
GetCurrentTask32
(
void
)
{
return
NtCurrentTeb
()
->
htask16
;
}
dlls/win32s/w32skrnl.spec
View file @
2682bc24
...
...
@@ -8,7 +8,7 @@ debug_channels (dll)
1 stub _kSetEnvironmentVariable@8
2 stub _SzFromImte@4
3 stdcall GetCurrentTask32() GetCurrentTask
3 stdcall GetCurrentTask32() GetCurrentTask
32
4 stub _DebugPrintf
5 stub _NtCloseSection@8
6 stub _AllocKernelHeap@8
...
...
dlls/win32s/w32sys.c
View file @
2682bc24
...
...
@@ -5,8 +5,11 @@
* Copyright (c) 1996 Anand Kumria
*/
#include <unistd.h>
#include "windef.h"
#include "wine/windef16.h"
#include "wine/winbase16.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
dll
);
...
...
@@ -62,3 +65,34 @@ DWORD WINAPI LoadPeResource16(WORD x,SEGPTR y) {
FIXME
(
"(0x%04x,0x%08lx),stub!
\n
"
,
x
,
y
);
return
0
;
}
/**********************************************************************
* IsPeFormat16 (W32SYS.2)
* Checks the passed filename if it is a PE format executeable
* RETURNS
* TRUE, if it is.
* FALSE if not.
*/
BOOL16
WINAPI
IsPeFormat16
(
LPSTR
fn
,
/* [in] filename to executeable */
HFILE16
hf16
)
/* [in] open file, if filename is NULL */
{
BOOL16
ret
=
FALSE
;
IMAGE_DOS_HEADER
mzh
;
OFSTRUCT
ofs
;
DWORD
xmagic
;
HFILE
hf
;
if
(
fn
)
hf
=
OpenFile
(
fn
,
&
ofs
,
OF_READ
);
else
hf
=
DosFileHandleToWin32Handle
(
hf16
);
if
(
hf
==
HFILE_ERROR
)
return
FALSE
;
_llseek
(
hf
,
0
,
SEEK_SET
);
if
(
sizeof
(
mzh
)
!=
_lread
(
hf
,
&
mzh
,
sizeof
(
mzh
)))
goto
done
;
if
(
mzh
.
e_magic
!=
IMAGE_DOS_SIGNATURE
)
goto
done
;
_llseek
(
hf
,
mzh
.
e_lfanew
,
SEEK_SET
);
if
(
sizeof
(
DWORD
)
!=
_lread
(
hf
,
&
xmagic
,
sizeof
(
DWORD
)))
goto
done
;
ret
=
(
xmagic
==
IMAGE_NT_SIGNATURE
);
done:
if
(
fn
)
_lclose
(
hf
);
return
ret
;
}
windows/defwnd.c
View file @
2682bc24
...
...
@@ -505,9 +505,9 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
if
(
(
hIcon
=
wndPtr
->
class
->
hCursor
)
)
return
(
LRESULT
)
hIcon
;
for
(
len
=
1
;
len
<
64
;
len
++
)
if
((
hIcon
=
LoadIcon
16
(
wndPtr
->
hInstance
,
MAKEINTRESOURCE16
(
len
))))
if
((
hIcon
=
LoadIcon
A
(
wndPtr
->
hInstance
,
MAKEINTRESOURCEA
(
len
))))
return
(
LRESULT
)
hIcon
;
return
(
LRESULT
)
LoadIcon
16
(
0
,
IDI_APPLICATION16
);
return
(
LRESULT
)
LoadIcon
A
(
0
,
IDI_APPLICATIONA
);
}
break
;
...
...
windows/mdi.c
View file @
2682bc24
...
...
@@ -805,7 +805,7 @@ static HBITMAP16 CreateMDIMenuBitmap(void)
{
HDC
hDCSrc
=
CreateCompatibleDC
(
0
);
HDC
hDCDest
=
CreateCompatibleDC
(
hDCSrc
);
HBITMAP16
hbClose
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_CLOSE
)
);
HBITMAP16
hbClose
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_CLOSE
)
);
HBITMAP16
hbCopy
;
HANDLE16
hobjSrc
,
hobjDest
;
...
...
@@ -1250,7 +1250,7 @@ LRESULT WINAPI MDIClientWndProc( HWND hwnd, UINT message, WPARAM wParam,
if
(
!
hBmpClose
)
{
hBmpClose
=
CreateMDIMenuBitmap
();
hBmpRestore
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_RESTORE
)
);
hBmpRestore
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_RESTORE
)
);
}
MDI_UpdateFrameText
(
frameWnd
,
hwnd
,
MDI_NOFRAMEREPAINT
,
frameWnd
->
text
);
...
...
windows/msgbox.c
View file @
2682bc24
...
...
@@ -98,20 +98,16 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSA lpmb)
/* Set the icon */
switch
(
lpmb
->
dwStyle
&
MB_ICONMASK
)
{
case
MB_ICONEXCLAMATION
:
SendDlgItemMessage16
(
hwnd
,
stc1
,
STM_SETICON16
,
(
WPARAM16
)
LoadIcon16
(
0
,
IDI_EXCLAMATION16
),
0
);
SendDlgItemMessageA
(
hwnd
,
stc1
,
STM_SETICON
,
LoadIconA
(
0
,
IDI_EXCLAMATIONA
),
0
);
break
;
case
MB_ICONQUESTION
:
SendDlgItemMessage16
(
hwnd
,
stc1
,
STM_SETICON16
,
(
WPARAM16
)
LoadIcon16
(
0
,
IDI_QUESTION16
),
0
);
SendDlgItemMessageA
(
hwnd
,
stc1
,
STM_SETICON
,
LoadIconA
(
0
,
IDI_QUESTIONA
),
0
);
break
;
case
MB_ICONASTERISK
:
SendDlgItemMessage16
(
hwnd
,
stc1
,
STM_SETICON16
,
(
WPARAM16
)
LoadIcon16
(
0
,
IDI_ASTERISK16
),
0
);
SendDlgItemMessageA
(
hwnd
,
stc1
,
STM_SETICON
,
LoadIconA
(
0
,
IDI_ASTERISKA
),
0
);
break
;
case
MB_ICONHAND
:
SendDlgItemMessage16
(
hwnd
,
stc1
,
STM_SETICON16
,
(
WPARAM16
)
LoadIcon16
(
0
,
IDI_HAND16
),
0
);
SendDlgItemMessageA
(
hwnd
,
stc1
,
STM_SETICON
,
LoadIconA
(
0
,
IDI_HANDA
),
0
);
break
;
default
:
/* By default, Windows 95/98/NT do not associate an icon to message boxes.
...
...
windows/nonclient.c
View file @
2682bc24
...
...
@@ -1468,18 +1468,18 @@ static void NC_DrawCaption( HDC hdc, RECT *rect, HWND hwnd,
if
(
!
hbitmapClose
)
{
if
(
!
(
hbitmapClose
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_CLOSE
)
)))
if
(
!
(
hbitmapClose
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_CLOSE
)
)))
{
WIN_ReleaseWndPtr
(
wndPtr
);
return
;
}
hbitmapCloseD
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_CLOSED
)
);
hbitmapMinimize
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_REDUCE
)
);
hbitmapMinimizeD
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_REDUCED
)
);
hbitmapMaximize
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_ZOOM
)
);
hbitmapMaximizeD
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_ZOOMD
)
);
hbitmapRestore
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_RESTORE
)
);
hbitmapRestoreD
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_RESTORED
)
);
hbitmapCloseD
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_CLOSED
)
);
hbitmapMinimize
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_REDUCE
)
);
hbitmapMinimizeD
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_REDUCED
)
);
hbitmapMaximize
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_ZOOM
)
);
hbitmapMaximizeD
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_ZOOMD
)
);
hbitmapRestore
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_RESTORE
)
);
hbitmapRestoreD
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_RESTORED
)
);
}
if
(
wndPtr
->
dwExStyle
&
WS_EX_DLGMODALFRAME
)
...
...
@@ -1583,15 +1583,15 @@ static void NC_DrawCaption95(
COLOR_INACTIVECAPTION
)
);
if
(
!
hbitmapClose
)
{
if
(
!
(
hbitmapClose
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_CLOSE
)
)))
if
(
!
(
hbitmapClose
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_CLOSE
)
)))
return
;
hbitmapCloseD
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_CLOSED
));
hbitmapMinimize
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_REDUCE
)
);
hbitmapMinimizeD
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_REDUCED
)
);
hbitmapMaximize
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_ZOOM
)
);
hbitmapMaximizeD
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_ZOOMD
)
);
hbitmapRestore
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_RESTORE
)
);
hbitmapRestoreD
=
LoadBitmap
16
(
0
,
MAKEINTRESOURCE16
(
OBM_RESTORED
)
);
hbitmapCloseD
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_CLOSED
));
hbitmapMinimize
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_REDUCE
)
);
hbitmapMinimizeD
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_REDUCED
)
);
hbitmapMaximize
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_ZOOM
)
);
hbitmapMaximizeD
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_ZOOMD
)
);
hbitmapRestore
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_RESTORE
)
);
hbitmapRestoreD
=
LoadBitmap
A
(
0
,
MAKEINTRESOURCEA
(
OBM_RESTORED
)
);
}
if
((
style
&
WS_SYSMENU
)
&&
!
(
exStyle
&
WS_EX_TOOLWINDOW
))
{
...
...
@@ -1971,23 +1971,23 @@ LONG NC_HandleSetCursor( HWND hwnd, WPARAM16 wParam, LPARAM lParam )
case
HTLEFT
:
case
HTRIGHT
:
return
(
LONG
)
SetCursor
16
(
LoadCursor16
(
0
,
IDC_SIZEWE16
)
);
return
(
LONG
)
SetCursor
(
LoadCursorA
(
0
,
IDC_SIZEWEA
)
);
case
HTTOP
:
case
HTBOTTOM
:
return
(
LONG
)
SetCursor
16
(
LoadCursor16
(
0
,
IDC_SIZENS16
)
);
return
(
LONG
)
SetCursor
(
LoadCursorA
(
0
,
IDC_SIZENSA
)
);
case
HTTOPLEFT
:
case
HTBOTTOMRIGHT
:
return
(
LONG
)
SetCursor
16
(
LoadCursor16
(
0
,
IDC_SIZENWSE16
)
);
return
(
LONG
)
SetCursor
(
LoadCursorA
(
0
,
IDC_SIZENWSEA
)
);
case
HTTOPRIGHT
:
case
HTBOTTOMLEFT
:
return
(
LONG
)
SetCursor
16
(
LoadCursor16
(
0
,
IDC_SIZENESW16
)
);
return
(
LONG
)
SetCursor
(
LoadCursorA
(
0
,
IDC_SIZENESWA
)
);
}
/* Default cursor: arrow */
return
(
LONG
)
SetCursor
16
(
LoadCursor16
(
0
,
IDC_ARROW16
)
);
return
(
LONG
)
SetCursor
(
LoadCursorA
(
0
,
IDC_ARROWA
)
);
}
/***********************************************************************
...
...
windows/syscolor.c
View file @
2682bc24
...
...
@@ -299,15 +299,6 @@ HBRUSH WINAPI GetSysColorBrush( INT index )
/***********************************************************************
* GetSysColorPen16 (Not a Windows API)
*/
HPEN16
WINAPI
GetSysColorPen16
(
INT16
index
)
{
return
(
HPEN16
)
GetSysColorPen
(
index
);
}
/***********************************************************************
* GetSysColorPen (Not a Windows API)
*
* This function is new to the Wine lib -- it does not exist in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment