// winutil.h
//
// Copyright (C) 2002, Chris Laurel <claurel@shatters.net>
//
// Miscellaneous useful Windows-related functions.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.

#ifndef _WINUTIL_H_
#define _WINUTIL_H_

#include <windows.h>
#include <commctrl.h>
#include <string>

using namespace std;

void SetMouseCursor(LPCTSTR lpCursor);
void CenterWindow(HWND hParent, HWND hWnd);
void RemoveButtonDefaultStyle(HWND hWnd);
void AddButtonDefaultStyle(HWND hWnd);
const char* CurrentCP();
string UTF8ToCurrentCP(const string& str);
string UTF8ToCurrentOEMCP(const string& str);
string CurrentCPToUTF8(const string& str);
string WStringToString(UINT codePage, const wstring& ws);
wstring StringToWString(UINT codePage, const string& s);
string WideToCurrentCP(const wstring& ws);
wstring CurrentCPToWide(const string& s);
string WideToUTF8(const wstring& ws);
wstring UTF8ToWide(const string& s);

#endif
