MusicMod: Added music modification, it currently only works in Windows
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1736 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
1 parent
55db229929
commit
264056972d
69 files changed
+5299
-511
No files matched your search
@@ -1,13 +1,23 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Plainamp, Open source Winamp core
|
||||
//
|
||||
// Copyright © 2005 Sebastian Pipping <[email protected]>
|
||||
//
|
||||
// --> http://www.hartwork.org
|
||||
//
|
||||
// This source code is released under the GNU General Public License (GPL).
|
||||
// See GPL.txt for details. Any non-GPL usage is strictly forbidden.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// =======================================================================================
|
||||
// WndprocRebar is called once every second during playback
|
||||
// =======================================================================================
|
||||
// In Toolbar::Create() the progress bar is called the Seekbar
|
||||
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Plainamp, Open source Winamp core
|
||||
//
|
||||
// Copyright © 2005 Sebastian Pipping <[email protected]>
|
||||
//
|
||||
// --> http://www.hartwork.org
|
||||
//
|
||||
// This source code is released under the GNU General Public License (GPL).
|
||||
// See GPL.txt for details. Any non-GPL usage is strictly forbidden.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "Rebar.h"
|
||||
@@ -20,7 +30,7 @@
|
||||
#include "Config.h"
|
||||
|
||||
#include "Winamp/wa_ipc.h"
|
||||
#include "resrc1.h"
|
||||
#include "Resources/resrc1.h"
|
||||
|
||||
|
||||
|
||||
@@ -240,10 +250,12 @@ bool Toolbar::Create()
|
||||
}
|
||||
|
||||
// Exchange window procedure
|
||||
WndprocRebarBackup = ( WNDPROC )GetWindowLong( WindowRebar, GWL_WNDPROC );
|
||||
WndprocRebarBackup = ( WNDPROC )GetWindowLong( WindowRebar, GWL_WNDPROC );
|
||||
//WndprocRebarBackup = ( WNDPROC )GetWindowLongPtr( WindowRebar, GWLP_WNDPROC ); // 64 bit
|
||||
if( WndprocRebarBackup != NULL )
|
||||
{
|
||||
SetWindowLong( WindowRebar, GWL_WNDPROC, ( LONG )WndprocRebar );
|
||||
//SetWindowLongPtr( WindowRebar, GWLP_WNDPROC, ( LONG )WndprocRebar );
|
||||
}
|
||||
|
||||
rebar_menu = CreatePopupMenu();
|
||||
@@ -1030,13 +1042,15 @@ void ContextMenuRebar( POINT * p )
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
LRESULT CALLBACK WndprocRebar( HWND hwnd, UINT message, WPARAM wp, LPARAM lp )
|
||||
{
|
||||
//Console::Append( TEXT("Rebar.cpp: WndprocRebar called") );
|
||||
|
||||
switch( message )
|
||||
{
|
||||
case WM_CONTEXTMENU:
|
||||
case WM_CONTEXTMENU: // This affects the placement of the progress bar
|
||||
{
|
||||
POINT p;
|
||||
GetCursorPos( &p );
|
||||
ContextMenuRebar( &p );
|
||||
//POINT p;
|
||||
//GetCursorPos( &p );
|
||||
//ContextMenuRebar( &p );
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1071,6 +1085,8 @@ LRESULT CALLBACK WndprocSeek( HWND hwnd, UINT message, WPARAM wp, LPARAM lp )
|
||||
static bool bDown = false;
|
||||
static int iLastVal = 0;
|
||||
|
||||
//Console::Append( TEXT("Rebar.cpp: WndprocSeek called") );
|
||||
|
||||
switch( message )
|
||||
{
|
||||
case WM_LBUTTONDOWN:
|
||||
|
||||
Reference in new issue
Block a user