publish changes

This commit is contained in:
Archie 2024-09-29 02:04:03 +00:00
parent afc5064a7b
commit ac2c6ac843
1605 changed files with 3354 additions and 3354 deletions

View file

@ -1,7 +1,7 @@
#ifndef NULLSOFT_ML_BANNER_HEADER
#define NULLSOFT_ML_BANNER_HEADER
#include <windows.h>
#include <arch.h>
class MLBanner
{

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
//******************************* Window
#define MLSO_WINDOW 0

View file

@ -1,7 +1,7 @@
#ifndef _COMBOSKIN_H
#define _COMBOSKIN_H
#include <windows.h>
#include <arch.h>
//class ScrollWnd;

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include <arch.h>
#include <strsafe.h>
#include "config.h"

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
#ifdef __cplusplus
extern "C" {

View file

@ -2,7 +2,7 @@
#include "./fileview_internal.h"
#include "./resource.h"
#include "../nu/menushortcuts.h"
#include <windowsx.h>
#include <archx.h>
#include <strsafe.h>
#define COLUMN_WIDTH_MIN 16

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
#include "../winamp/gen.h"
#include "api__gen_ml.h"
#include "./ml_ipc_0313.h"

View file

@ -2,7 +2,7 @@
#include "./fileview_internal.h"
#include "./resource.h"
#include "../nu/menushortcuts.h"
#include <windowsx.h>
#include <archx.h>
#include <strsafe.h>
#define SUBMENU_VIEWMODE 0

View file

@ -2,7 +2,7 @@
#include "./fileview_internal.h"
#include "./resource.h"
#include "../nu/menushortcuts.h"
#include <windowsx.h>
#include <archx.h>
#include <strsafe.h>
#define FVTOOLBAR_DATAW L"FVTOOLBAR"

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include <arch.h>
#include "ml.h"
#include "../nu/CGlobalAtom.h"

View file

@ -6,7 +6,7 @@
#include "./skinnedlistbox.h"
#include "./colors.h"
#include <windowsx.h>
#include <archx.h>
#include <strsafe.h>

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
#ifdef __cplusplus
extern "C" {

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
#include "./ml_ipc_0313.h"
#include "../nu/trace.h"

View file

@ -1,7 +1,7 @@
#ifndef _GAYSTRING_H_
#define _GAYSTRING_H_
#include <windows.h>
#include <arch.h>
class GayString
{

View file

@ -93,26 +93,26 @@
</VcpkgInstalledDir>
<VcpkgUseStatic>false</VcpkgUseStatic>
<VcpkgConfiguration>Debug</VcpkgConfiguration>
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
<VcpkgTriplet>x86-arch-static-md</VcpkgTriplet>
</PropertyGroup>
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<VcpkgInstalledDir>
</VcpkgInstalledDir>
<VcpkgUseStatic>false</VcpkgUseStatic>
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
<VcpkgTriplet>x86-arch-static-md</VcpkgTriplet>
</PropertyGroup>
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<VcpkgInstalledDir>
</VcpkgInstalledDir>
<VcpkgUseStatic>true</VcpkgUseStatic>
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
<VcpkgTriplet>x86-arch-static-md</VcpkgTriplet>
<VcpkgConfiguration>Debug</VcpkgConfiguration>
</PropertyGroup>
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<VcpkgInstalledDir>
</VcpkgInstalledDir>
<VcpkgUseStatic>true</VcpkgUseStatic>
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
<VcpkgTriplet>x86-arch-static-md</VcpkgTriplet>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
@ -152,7 +152,7 @@
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
<TargetMachine>MachineX86</TargetMachine>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
<AdditionalLibraryDirectories>..\..\..\external_dependencies\vcpkg\buildtrees\fmt\$(PlatformShortName)-windows-dbg;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>..\..\..\external_dependencies\vcpkg\buildtrees\fmt\$(PlatformShortName)-arch-dbg;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<SubSystem>Windows</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
@ -205,7 +205,7 @@ xcopy /Y /D $(IntDir)$(TargetName).pdb ..\..\..\..\Build\Winamp_$(PlatformShortN
</SupportUnloadOfDelayLoadedDLL>
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
<AdditionalLibraryDirectories>..\..\..\external_dependencies\vcpkg\buildtrees\fmt\$(PlatformShortName)-windows-dbg;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>..\..\..\external_dependencies\vcpkg\buildtrees\fmt\$(PlatformShortName)-arch-dbg;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<SubSystem>Windows</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
@ -256,7 +256,7 @@ xcopy /Y /D $(IntDir)$(TargetName).pdb ..\..\..\..\Build\Winamp_$(PlatformShortN
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
<TargetMachine>MachineX86</TargetMachine>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
<AdditionalLibraryDirectories>..\..\..\external_dependencies\vcpkg\buildtrees\fmt\$(PlatformShortName)-windows-rel;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>..\..\..\external_dependencies\vcpkg\buildtrees\fmt\$(PlatformShortName)-arch-rel;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<SubSystem>Windows</SubSystem>
<StackReserveSize>0x8000</StackReserveSize>
<LargeAddressAware>true</LargeAddressAware>
@ -300,7 +300,7 @@ xcopy /Y /D $(IntDir)$(TargetName).pdb ..\..\..\..\Build\Winamp_$(PlatformShortN
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
<AdditionalLibraryDirectories>..\..\..\external_dependencies\vcpkg\buildtrees\fmt\$(PlatformShortName)-windows-rel;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>..\..\..\external_dependencies\vcpkg\buildtrees\fmt\$(PlatformShortName)-arch-rel;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
typedef struct _COLOR24 COLOR24;

View file

@ -16,7 +16,7 @@
**
*/
#include <windows.h>
#include <arch.h>
#include "itemlist.h"
C_ItemList::C_ItemList()

View file

@ -1,5 +1,5 @@
#include "main.h"
#include <windowsx.h>
#include <archx.h>
#include "config.h"
#include "../winamp/wa_dlg.h"
@ -110,7 +110,7 @@ INT_PTR handleListViewHeaderMsgs(HWND hwndDlg,
switch (lpnmcd->dwDrawStage) {
// prior to painting
case CDDS_PREPAINT:
return CDRF_NOTIFYITEMDRAW; // tell windows we want individual notification of each item being drawn
return CDRF_NOTIFYITEMDRAW; // tell arch we want individual notification of each item being drawn
// notification of each item being drawn
case CDDS_ITEMPREPAINT:
{

View file

@ -1,7 +1,7 @@
#ifndef _LISTSKIN_H
#define _LISTSKIN_H
#include <windows.h>
#include <arch.h>
class ScrollWnd;

View file

@ -16,7 +16,7 @@
**
*/
#include <windows.h>
#include <arch.h>
#include <commctrl.h>
#include "listview.h"

View file

@ -19,8 +19,8 @@
#ifndef _LISTVIEW_H_
#define _LISTVIEW_H_
#include <windows.h>
#include <windowsx.h>
#include <arch.h>
#include <archx.h>
#include <commctrl.h>
class W_ListView

View file

@ -1,5 +1,5 @@
#include "main.h"
#include <windowsx.h>
#include <archx.h>
#include <time.h>
#include <rpc.h>
#include "../winamp/gen.h"
@ -101,7 +101,7 @@ extern "C"
HWND g_PEWindow;
HMENU wa_main_menu = NULL;
HMENU wa_windows_menu = NULL;
HMENU wa_arch_menu = NULL;
HMENU wa_playlists_cmdmenu = NULL;
HMENU last_playlistsmenu = NULL;
HMENU last_viewmenu = NULL;
@ -890,9 +890,9 @@ int init()
int vis = g_config->ReadInt(L"visible", 1);
wa_main_menu = (HMENU)SendMessage(plugin.hwndParent, WM_WA_IPC, 0, IPC_GET_HMENU);
wa_windows_menu = (HMENU)SendMessage(plugin.hwndParent, WM_WA_IPC, 4, IPC_GET_HMENU);
wa_arch_menu = (HMENU)SendMessage(plugin.hwndParent, WM_WA_IPC, 4, IPC_GET_HMENU);
wa_playlists_cmdmenu = NULL;
if (wa_main_menu || wa_windows_menu)
if (wa_main_menu || wa_arch_menu)
{
if (wa_main_menu)
{
@ -906,13 +906,13 @@ int init()
SendMessage(plugin.hwndParent, WM_WA_IPC, 1, IPC_ADJUST_OPTIONSMENUPOS);
}
if (wa_windows_menu)
if (wa_arch_menu)
{
MENUITEMINFOW i = {sizeof(i), MIIM_ID | MIIM_STATE | MIIM_TYPE, MFT_STRING, vis ? (UINT)MFS_CHECKED : 0, WA_MENUITEM_ID};
int prior_item = GetMenuItemID(wa_windows_menu,3);
if(prior_item <= 0) prior_item = GetMenuItemID(wa_windows_menu,2);
int prior_item = GetMenuItemID(wa_arch_menu,3);
if(prior_item <= 0) prior_item = GetMenuItemID(wa_arch_menu,2);
i.dwTypeData = WASABI_API_LNGSTRINGW(IDS_ML_ALT_L_SHORTCUT);
InsertMenuItemW(wa_windows_menu, prior_item, FALSE, &i);
InsertMenuItemW(wa_arch_menu, prior_item, FALSE, &i);
SendMessage(plugin.hwndParent, WM_WA_IPC, 1, IPC_ADJUST_FFWINDOWSMENUPOS);
}
}

View file

@ -1,8 +1,8 @@
#ifndef _MAIN_H
#define _MAIN_H
#include <windows.h>
#include <windowsx.h>
#include <arch.h>
#include <archx.h>
#include <commctrl.h>
#include "../winamp/wa_dlg.h"

View file

@ -23,7 +23,7 @@
#define MLHDR_VER_U 0x16 // used from Winamp v5.64 to v5.65 (is loaded by v5.66+)
#define MLHDR_VER_OLD 0x15 // used up to Winamp v5.63 (is loaded by v5.64+)
#include <windows.h>
#include <arch.h>
#include <commctrl.h>
#include <stddef.h>
#include <api/service/api_service.h>
@ -42,7 +42,7 @@ typedef struct
// return NONZERO if you accept this message as yours, otherwise 0 to pass it to other plugins
INT_PTR (__cdecl *MessageProc)(int message_type, INT_PTR param1, INT_PTR param2, INT_PTR param3);
// Note: INT_PTR becomes 64bit on 64bit compiles...
// if you don't like windows types or caps, you can #include <stddef.h> and use intptr_t
// if you don't like arch types or caps, you can #include <stddef.h> and use intptr_t
// all the following data is filled in by the library
HWND hwndWinampParent;
@ -74,7 +74,7 @@ typedef struct
//
// Uninstall support was added from 5.0+ and uninstall now support from 5.5+ though note
// that it is down to you to ensure that if uninstall now is returned that it will not
// cause a crash i.e. don't use if you've been subclassing the main or library windows.
// cause a crash i.e. don't use if you've been subclassing the main or library arch.
//
// The HWND passed in the calling of winampUninstallPlugin(..) is the preference page HWND.
//
@ -758,8 +758,8 @@ typedef struct {
/* start of ML_CHILDIPC_* section */
// this gets sent to any child windows of the library windows, and then (if not handled) the library window itself
#define WM_ML_CHILDIPC WM_APP+ 0x800 // avoids conflicts with any windows controls
// this gets sent to any child arch of the library arch, and then (if not handled) the library window itself
#define WM_ML_CHILDIPC WM_APP+ 0x800 // avoids conflicts with any arch controls
// lParam = 0x100, wParam = &mlDropItemStruct
#define ML_CHILDIPC_DROPITEM 0x100

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
#include "./ml_imagelist.h"
// Draws Cloud Status based on CLOUDDRAWPARAMS

View file

@ -4,7 +4,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#include <windows.h>
#include <arch.h>
typedef struct _CLOUDCOLUMNPAINT_I
{

View file

@ -16,8 +16,8 @@
**
*/
#include <windows.h>
#include <windowsx.h>
#include <arch.h>
#include <archx.h>
#include <stdio.h>
#include "../ml.h"
#include "resource.h"

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
typedef LPVOID HMLIMGFLTRMNGR;

View file

@ -6,7 +6,7 @@
#endif
#include <windows.h>
#include <arch.h>
#include <commctrl.h>
#include "./ml_imageloader.h" // image loading
#include "./ml_imagefilter.h" // image loading

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
typedef struct _MLIMAGESOURCE_I

View file

@ -1,7 +1,7 @@
#ifndef _WA_ML_IPC_H_
#define _WA_ML_IPC_H_
#include <windows.h>
#include <arch.h>
#include <stddef.h>
//# IPC_LIBRARY_SENDTOMENU

View file

@ -1074,7 +1074,7 @@ typedef struct _MLSKINWINDOW
#define ML_IPC_SKINWINDOW 0x1400L // param = (WPARAM)(MLSKINWINDOW)pmlSkinWnd. Return TRUE if ok.
// Note: If window already skinned you will get error.
// Some controls require they parent to support reflection which provided by all skinned windows.
// Some controls require they parent to support reflection which provided by all skinned arch.
// In case parent not skined it will be skinned automaticly as SKINNEDWND_TYPE_WINDOW.
// You can always reskin parent window later with desired type.
// Skinned window will unskin itself on WM_NCDESTROY.

View file

@ -16,7 +16,7 @@
**
*/
#include <windows.h>
#include <arch.h>
#include "ml.h"
void freeRecord(itemRecord *p)

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
#include "./ml_imagelist.h"
/// Rating_Draw Styles

View file

@ -4,7 +4,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#include <windows.h>
#include <arch.h>
// Styles
#define RCS_DEFAULT_I 0xFFFFFFFF // use default gen_ml style

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
#ifndef WM_DWMCOMPOSITIONCHANGED
#define WM_DWMCOMPOSITIONCHANGED 0x031E

View file

@ -16,7 +16,7 @@
#include "api__gen_ml.h"
#include "../nu/CGlobalAtom.h"
#include "../nu/trace.h"
#include <windowsx.h>
#include <archx.h>
#include <strsafe.h>
extern "C" winampGeneralPurposePlugin plugin;

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
#include "./config.h"
#include "./ml_imagelist.h"

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
// reflected messages will pass this as lParam
typedef struct _REFLECTPARAM

View file

@ -1,6 +1,6 @@
// some code taken from (freeware) Cool ScrollBar library by J Brown
#include "main.h"
#include <windowsx.h>
#include <archx.h>
#include <tchar.h>
#include "scrollwnd.h"
#include "../winamp/wa_dlg.h"
@ -955,7 +955,7 @@ static LRESULT NCPaint(ScrollWnd *sw, HWND hwnd, WPARAM wParam, LPARAM lParam)
dwStyle = GetWindowLongPtr(hwnd, GWL_STYLE);
// If the window has WS_(H-V)SCROLL bits set, we should reset them
// to avoid windows taking the scrollbars into account.
// to avoid arch taking the scrollbars into account.
// We temporarily set a flag preventing the subsecuent
// WM_STYLECHANGING/WM_STYLECHANGED to be forwarded to
// the original window procedure
@ -1876,7 +1876,7 @@ static LRESULT CoolSB_SetCursor(ScrollWnd *swnd, HWND hwnd, WPARAM wParam, LPARA
//
// CoolScrollbar subclass procedure.
// Handle all messages needed to mimick normal windows scrollbars
// Handle all messages needed to mimick normal arch scrollbars
//
LRESULT CALLBACK CoolSBWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
@ -1997,7 +1997,7 @@ LRESULT CALLBACK CoolSBWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lP
case WM_ERASEBKGND:
if (swnd && !swnd->fThumbTracking && uCurrentScrollPortion == HTSCROLL_NONE)
{
//disable windows scrollbar painting (fixes gfx repainting weirdness)
//disable arch scrollbar painting (fixes gfx repainting weirdness)
int style = GetWindowLong(hwnd, GWL_STYLE);
if (style&(WS_HSCROLL | WS_VSCROLL))
{
@ -2024,7 +2024,7 @@ LRESULT CALLBACK CoolSBWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lP
return ret;
}
case WM_USER + 0x3443: //manually sent by other windows (like columns header for ex.)
case WM_USER + 0x3443: //manually sent by other arch (like columns header for ex.)
if (swnd) swnd->update();
break;

View file

@ -22,7 +22,7 @@
#define THUMBTRACK_SNAPDIST 128
#include <windows.h>
#include <arch.h>
// To complement the exisiting SB_HORZ, SB_VERT, SB_BOTH
// scrollbar identifiers

View file

@ -1,5 +1,5 @@
#include "main.h"
#include <windowsx.h>
#include <archx.h>
#include "resource.h"
#include "config.h"
#include "sendto.h"

View file

@ -3,7 +3,7 @@
#include "../winamp/wa_dlg.h"
#include "./skinning.h"
#include "../nu/trace.h"
#include <windowsx.h>
#include <archx.h>
#include <strsafe.h>
#define COMBO_TEXT_MAX 512

View file

@ -4,7 +4,7 @@
#include "./stockobjects.h"
#include "./skinnedmenu.h"
#include "../nu/trace.h"
#include <windowsx.h>
#include <archx.h>
#include <strsafe.h>

View file

@ -16,7 +16,7 @@
// size rules
#define SHS_SIZERULE_WINDOWS 0x00 // Use windows default size rule.
#define SHS_SIZERULE_WINDOWS 0x00 // Use arch default size rule.
#define SHS_SIZERULE_ADJUSTONE 0x01 // Resize column and adjust adjacent column.
#define SHS_SIZERULE_ADJUSTALL 0x03 // Resize column and adjust adjacent column when column reach minimum adjust next one.
#define SHS_SIZERULE_PROPORTIONAL 0x02 // Resize column and adjust all columns proportionately.

View file

@ -2,7 +2,7 @@
#include "./skinnedscrollwnd.h"
#include "main.h"
#include <commctrl.h>
#include <windowsx.h>
#include <archx.h>
#include "../winamp/wa_dlg.h"
#include "api__gen_ml.h"
#include "./colors.h"

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
#include "./ml.h"
#include "./ml_ipc_0313.h"
#include "./reflectmsg.h"

View file

@ -5,7 +5,7 @@
#pragma once
#endif
#include <windows.h>
#include <arch.h>
#define CACHED_DC 0x0000

View file

@ -8,7 +8,7 @@
// Manages strings as array. Strings a copied to the continues buffer which make it fast to access data
#include <windows.h>
#include <arch.h>
class StringVector
{

View file

@ -1,6 +1,6 @@
#include "main.h"
#include "api__gen_ml.h"
#include <windowsx.h>
#include <archx.h>
#include <time.h>
#include <rpc.h>
#include "../winamp/gen.h"