Fixed a few dependencies on 16-bit or internal functions. Fixed a few
warnings.
This commit is contained in:
parent
62469b21b6
commit
2682bc24ca
|
@ -169,7 +169,7 @@ static inline LRESULT WINAPI DesktopWndProc_locked( WND *wndPtr, UINT message,
|
|||
ExitWindows16( 0, 0 );
|
||||
|
||||
case WM_SETCURSOR:
|
||||
return (LRESULT)SetCursor16( LoadCursor16( 0, IDC_ARROW16 ) );
|
||||
return (LRESULT)SetCursor( LoadCursorA( 0, IDC_ARROWA ) );
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
#include "win.h"
|
||||
#include "heap.h"
|
||||
|
||||
BOOL bMultiLineTitle;
|
||||
HFONT hIconTitleFont;
|
||||
static BOOL bMultiLineTitle;
|
||||
static HFONT hIconTitleFont;
|
||||
|
||||
/***********************************************************************
|
||||
* ICONTITLE_Init
|
||||
|
|
|
@ -113,28 +113,10 @@ static HBITMAP16 STATIC_SetBitmap( WND *wndPtr, HBITMAP16 hBitmap )
|
|||
*
|
||||
* Load the icon for an SS_ICON control.
|
||||
*/
|
||||
static HICON16 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 HBITMAP16 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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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: libuser32.so libgdi32.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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -340,11 +340,9 @@ DWORD WINAPI WNetGetConnectionA( LPCSTR lpLocalName,
|
|||
if (lpLocalName[1] == ':')
|
||||
{
|
||||
int drive = toupper(lpLocalName[0]) - 'A';
|
||||
switch(DRIVE_GetType(drive))
|
||||
switch(GetDriveTypeA(lpLocalName))
|
||||
{
|
||||
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_HD:
|
||||
case TYPE_CDROM:
|
||||
case DRIVE_REMOVABLE:
|
||||
case DRIVE_FIXED:
|
||||
case DRIVE_CDROM:
|
||||
TRACE("file is local\n");
|
||||
return WN_NOT_CONNECTED;
|
||||
default:
|
||||
|
|
|
@ -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)GetKeyState16( 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 )
|
||||
{ HCURSOR16 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 = LoadIcon16( 0, MAKEINTRESOURCE16(OIC_WINEICON) );
|
||||
if (!hIcon) info.hIcon = LoadIconA( 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 = LoadIcon16( 0, MAKEINTRESOURCE16(OIC_WINEICON) );
|
||||
if (!hIcon) info.hIcon = LoadIconA( 0, MAKEINTRESOURCEA(OIC_WINEICON) );
|
||||
ret = DialogBoxIndirectParamA( GetWindowLongA( hWnd, GWL_HINSTANCE ),
|
||||
template, hWnd, AboutDlgProc, (LPARAM)&info );
|
||||
HeapFree( GetProcessHeap(), 0, (LPSTR)info.szApp );
|
||||
|
|
|
@ -4,7 +4,6 @@ SRCDIR = @srcdir@
|
|||
VPATH = @srcdir@
|
||||
MODULE = shlwapi
|
||||
EXTRALIBS = -lwine_unicode
|
||||
IMPORTS = ntdll
|
||||
|
||||
LDDLLFLAGS = @LDDLLFLAGS@
|
||||
SYMBOLFILE = $(MODULE).tmp.o
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
|
|
@ -173,11 +173,9 @@ WORD WINAPI WNetGetConnection16( LPSTR lpLocalName,
|
|||
if (lpLocalName[1] == ':')
|
||||
{
|
||||
int drive = toupper(lpLocalName[0]) - 'A';
|
||||
switch(DRIVE_GetType(drive))
|
||||
switch(GetDriveTypeA(lpLocalName))
|
||||
{
|
||||
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_HD:
|
||||
case TYPE_CDROM:
|
||||
case DRIVE_REMOVABLE:
|
||||
case DRIVE_FIXED:
|
||||
case DRIVE_CDROM:
|
||||
TRACE("file is local\n");
|
||||
return WN16_NOT_CONNECTED;
|
||||
default:
|
||||
|
|
|
@ -5,7 +5,6 @@ VPATH = @srcdir@
|
|||
MODULE = w32skrnl
|
||||
SOVERSION = 1.0
|
||||
ALTNAMES = w32sys win32s16
|
||||
IMPORTS = kernel32 ntdll
|
||||
|
||||
LDDLLFLAGS = @LDDLLFLAGS@
|
||||
SYMBOLFILE = $(MODULE).tmp.o
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ debug_channels (dll)
|
|||
|
||||
1 stub _kSetEnvironmentVariable@8
|
||||
2 stub _SzFromImte@4
|
||||
3 stdcall GetCurrentTask32() GetCurrentTask
|
||||
3 stdcall GetCurrentTask32() GetCurrentTask32
|
||||
4 stub _DebugPrintf
|
||||
5 stub _NtCloseSection@8
|
||||
6 stub _AllocKernelHeap@8
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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=LoadIcon16(wndPtr->hInstance,MAKEINTRESOURCE16(len))))
|
||||
if((hIcon=LoadIconA(wndPtr->hInstance,MAKEINTRESOURCEA(len))))
|
||||
return (LRESULT)hIcon;
|
||||
return (LRESULT)LoadIcon16(0,IDI_APPLICATION16);
|
||||
return (LRESULT)LoadIconA(0,IDI_APPLICATIONA);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -805,7 +805,7 @@ static HBITMAP16 CreateMDIMenuBitmap(void)
|
|||
{
|
||||
HDC hDCSrc = CreateCompatibleDC(0);
|
||||
HDC hDCDest = CreateCompatibleDC(hDCSrc);
|
||||
HBITMAP16 hbClose = LoadBitmap16(0, MAKEINTRESOURCE16(OBM_CLOSE) );
|
||||
HBITMAP16 hbClose = LoadBitmapA(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 = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_RESTORE) );
|
||||
hBmpRestore = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_RESTORE) );
|
||||
}
|
||||
MDI_UpdateFrameText(frameWnd, hwnd, MDI_NOFRAMEREPAINT,frameWnd->text);
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1468,18 +1468,18 @@ static void NC_DrawCaption( HDC hdc, RECT *rect, HWND hwnd,
|
|||
|
||||
if (!hbitmapClose)
|
||||
{
|
||||
if (!(hbitmapClose = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_CLOSE) )))
|
||||
if (!(hbitmapClose = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_CLOSE) )))
|
||||
{
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
return;
|
||||
}
|
||||
hbitmapCloseD = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_CLOSED) );
|
||||
hbitmapMinimize = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_REDUCE) );
|
||||
hbitmapMinimizeD = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_REDUCED) );
|
||||
hbitmapMaximize = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_ZOOM) );
|
||||
hbitmapMaximizeD = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_ZOOMD) );
|
||||
hbitmapRestore = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_RESTORE) );
|
||||
hbitmapRestoreD = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_RESTORED) );
|
||||
hbitmapCloseD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_CLOSED) );
|
||||
hbitmapMinimize = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_REDUCE) );
|
||||
hbitmapMinimizeD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_REDUCED) );
|
||||
hbitmapMaximize = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_ZOOM) );
|
||||
hbitmapMaximizeD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_ZOOMD) );
|
||||
hbitmapRestore = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_RESTORE) );
|
||||
hbitmapRestoreD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_RESTORED) );
|
||||
}
|
||||
|
||||
if (wndPtr->dwExStyle & WS_EX_DLGMODALFRAME)
|
||||
|
@ -1583,15 +1583,15 @@ static void NC_DrawCaption95(
|
|||
COLOR_INACTIVECAPTION) );
|
||||
|
||||
if (!hbitmapClose) {
|
||||
if (!(hbitmapClose = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_CLOSE) )))
|
||||
if (!(hbitmapClose = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_CLOSE) )))
|
||||
return;
|
||||
hbitmapCloseD = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_CLOSED));
|
||||
hbitmapMinimize = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_REDUCE) );
|
||||
hbitmapMinimizeD = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_REDUCED) );
|
||||
hbitmapMaximize = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_ZOOM) );
|
||||
hbitmapMaximizeD = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_ZOOMD) );
|
||||
hbitmapRestore = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_RESTORE) );
|
||||
hbitmapRestoreD = LoadBitmap16( 0, MAKEINTRESOURCE16(OBM_RESTORED) );
|
||||
hbitmapCloseD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_CLOSED));
|
||||
hbitmapMinimize = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_REDUCE) );
|
||||
hbitmapMinimizeD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_REDUCED) );
|
||||
hbitmapMaximize = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_ZOOM) );
|
||||
hbitmapMaximizeD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_ZOOMD) );
|
||||
hbitmapRestore = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_RESTORE) );
|
||||
hbitmapRestoreD = LoadBitmapA( 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)SetCursor16( LoadCursor16( 0, IDC_SIZEWE16 ) );
|
||||
return (LONG)SetCursor( LoadCursorA( 0, IDC_SIZEWEA ) );
|
||||
|
||||
case HTTOP:
|
||||
case HTBOTTOM:
|
||||
return (LONG)SetCursor16( LoadCursor16( 0, IDC_SIZENS16 ) );
|
||||
return (LONG)SetCursor( LoadCursorA( 0, IDC_SIZENSA ) );
|
||||
|
||||
case HTTOPLEFT:
|
||||
case HTBOTTOMRIGHT:
|
||||
return (LONG)SetCursor16( LoadCursor16( 0, IDC_SIZENWSE16 ) );
|
||||
return (LONG)SetCursor( LoadCursorA( 0, IDC_SIZENWSEA ) );
|
||||
|
||||
case HTTOPRIGHT:
|
||||
case HTBOTTOMLEFT:
|
||||
return (LONG)SetCursor16( LoadCursor16( 0, IDC_SIZENESW16 ) );
|
||||
return (LONG)SetCursor( LoadCursorA( 0, IDC_SIZENESWA ) );
|
||||
}
|
||||
|
||||
/* Default cursor: arrow */
|
||||
return (LONG)SetCursor16( LoadCursor16( 0, IDC_ARROW16 ) );
|
||||
return (LONG)SetCursor( LoadCursorA( 0, IDC_ARROWA ) );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
@ -298,15 +298,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)
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue