mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
MusicMod: Moved it from Branches to Externals, I guess there usually is no Branches dir in the trunk dir, so this may look a little better
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2174 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
80
Externals/MusicMod/Player/Src/Status.cpp
vendored
Normal file
80
Externals/MusicMod/Player/Src/Status.cpp
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Plainamp, Open source Winamp core
|
||||
//
|
||||
// Copyright <20> 2005 Sebastian Pipping <webmaster@hartwork.org>
|
||||
//
|
||||
// --> 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 "Status.h"
|
||||
#include "Main.h"
|
||||
#include "Util.h"
|
||||
#include "GlobalVersion.h"
|
||||
|
||||
|
||||
|
||||
int iStatusHeight = 40; // extern
|
||||
HWND WindowStatus = NULL; // extern
|
||||
|
||||
const TCHAR * const szStatusDefault = TEXT( " " ) PLAINAMP_LONG_TITLE;
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool BuildMainStatus()
|
||||
{
|
||||
LoadCommonControls();
|
||||
|
||||
WindowStatus = CreateWindowEx(
|
||||
0,
|
||||
STATUSCLASSNAME,
|
||||
szStatusDefault,
|
||||
WS_CHILD |
|
||||
WS_VISIBLE,
|
||||
CW_USEDEFAULT,
|
||||
CW_USEDEFAULT,
|
||||
CW_USEDEFAULT,
|
||||
CW_USEDEFAULT,
|
||||
WindowMain,
|
||||
NULL,
|
||||
g_hInstance,
|
||||
NULL
|
||||
);
|
||||
|
||||
if( !WindowStatus ) return false;
|
||||
|
||||
RECT r = { 0, 0, 0, 0 };
|
||||
GetWindowRect( WindowStatus, &r );
|
||||
iStatusHeight = r.bottom - r.top;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool StatusUpdate( TCHAR * szText )
|
||||
{
|
||||
if( !WindowStatus ) return false;
|
||||
SetWindowText( WindowStatus, szText );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void StatusReset()
|
||||
{
|
||||
if( !WindowStatus ) return;
|
||||
SetWindowText( WindowStatus, szStatusDefault );
|
||||
}
|
Reference in New Issue
Block a user