source: trunk/Lucide/SOURCE/gui/luutils.h @ 20

Last change on this file since 20 was 2, checked in by Eugene Romanenko, 16 years ago

First import

File size: 1.6 KB
Line 
1#ifndef __LUUTILS_H
2#define __LUUTILS_H
3
4
5// Auto-free buffer
6class afbuf
7{
8        protected:
9                unsigned int size; 
10        public:
11                char *buffer;
12                afbuf( unsigned int s );
13                ~afbuf() { delete buffer; }
14                unsigned int getSize() { return size; }
15    private:
16        // dummy copy constructor and operator= to prevent copying
17        afbuf( const afbuf& );
18        afbuf& operator = ( const afbuf& );
19};
20
21
22#ifdef INCL_WIN
23BOOL CreateGraphicsBuffer( HAB hab, PRECTL prectl, HPS hps, HPS *phpsBuffer, HDC *phdcBuffer );
24void BlitGraphicsBuffer( HPS hps, HPS hpsBuffer, PRECTL prclPaint );
25void DestroyGraphicsBuffer( HPS hpsBuffer, HDC hdcBuffer );
26BOOL PMStoreWindowPos( PCSZ pIniName, PCSZ pAppName, PCSZ pKeyName, HWND hwnd );
27void PMStoreWindowPosI( HINI ini, PCSZ pAppName, PCSZ pKeyName, HWND hwnd );
28BOOL PMRestoreWindowPos( PCSZ pIniName, PCSZ pAppName, PCSZ pKeyName,
29                         HWND hwnd, BOOL activate, BOOL chkCoord,
30                         BOOL min, BOOL max, BOOL hide );
31SHORT getStringPixSize( HPS hps, PCSZ str );
32void textToClipbrd( HAB hab, const char *text );
33void centerWindow( HWND parent, HWND hwnd );
34#endif
35
36
37char *newstrdup( const char *s );
38
39// Internationalization/Localization
40void loadLang();
41#ifdef INCL_WIN
42void localizeMenu( HWND hmenu );
43void localizeDialog( HWND hdlg );
44#endif
45void getLocalizedString( const char *key, LONG maxLen, char *buf );
46char *newstrdupL( const char *key );
47#ifdef _STRING_INCLUDED
48std::string getLocalizedString( const char *t );
49std::string str( double n );
50std::string time2string( unsigned long time );
51#endif
52
53
54#endif // __LUUTILS_H
55
Note: See TracBrowser for help on using the repository browser.