celestia/src/celutil/winutil.h

28 lines
749 B
C++

// 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);
#endif