{$REGION 'TMainApp'}
type
TMainApp =
class(TComponent)
private
{ Private declarations }
FHandle: HWND;
lRes: integer;
Background: PWideChar;
sFileName:
string;
gBlinkCount: integer;
UseState: integer;
gColor:
array [1 .. 33]
of integer;
gPeak:
array [1 .. 100, 1 .. 2]
of integer;
// Vis
xPos: integer;
stepX: integer;
C0, CB1, CB2, CB3, CG1, CG2, CG3: integer;
nTick: integer;
OkL, OkR: integer;
FPScount, nFPScount: Cardinal;
ShowMode: integer;
hPlgRadioButton: integer;
hSubSkinMenu: HMenu;
Restart: BOOL;
h_Instance: HINST;
newItem:
string;
PaintDC: HDC;
procedure DeleteResource;
function GetHandle: HWND;
procedure SetHandle(
const Value: HWND);
protected
//
public
{ Public declarations }
procedure SplitRGB(Col: COLORREF;
var R: Byte;
var G: Byte;
var b: Byte);
procedure DrawOscillo(WinHandle: HWND; pInteger: TWaveData);
procedure PlayListPlay(hList: HWND; nCount: integer);
procedure RenderVis(WinHandle: HWND);
procedure CheckPluginVisibility(nRedraw: integer);
procedure ResizeWindow(WinHandle: HWND; ChangeBackground: integer);
procedure ButtonBlink(ID: integer; nStop: boolean);
procedure MovePluginButton(Offset: integer);
procedure CheckVisiblePanel(hCtrl: HWND);
procedure DetectBackground;
procedure ColorInit;
procedure WMEnterSizeMove(
var Msg: TMessage);
message WM_ENTERSIZEMOVE;
procedure WMSizing(
var Msg: TMessage);
message WM_SIZING;
procedure WMMoving(
var Msg: TMessage);
message WM_MOVING;
procedure WMExitSizeMove(
var Msg: TMessage);
message WM_EXITSIZEMOVE;
procedure WMSysCommand(
var Msg: TMessage);
message WM_SYSCOMMAND;
procedure WMCommand(
var Msg: TMessage);
message WM_COMMAND;
function SetRGB(colorRGB: DWORD): integer;
function LevelColr(nLevel: integer): integer;
function PaintCapture(WinHandle: HWND;
DC: Cardinal; Action: TCaptureAction): integer;
function SolvePeak(nValue: integer; nTotal: integer): integer;
function FileSize(FileName: PWideChar): integer;
function ListShuffle(hList: HWND): integer;
function ARGBToColorRef(Color: ARGB): COLORREF;
function GetMenuTxt(ItemId: integer;
var Img: Cardinal;
var ImgItem: Cardinal;
var ImgSep: Cardinal;
var SideBarImg: Cardinal): WideString;
property Handle: HWND
read GetHandle
write SetHandle;
end;
{$ENDREGION}