-
Notifications
You must be signed in to change notification settings - Fork 0
/
function.h
38 lines (33 loc) · 962 Bytes
/
function.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef FUNCTION2_H_INCLUDED
#define FUNCTION2_H_INCLUDED
#include <windows.h>
#include "resource.h"
class Func{
///local variables
HDC hdc,hdcMem;
HBITMAP hbm_old;
BITMAP bm;
PAINTSTRUCT ps;
//for text
long lfHeight;
HFONT hf_font, old_font;
RECT rcClient;
RECT* prc;
///___________________________
HWND hwnd;
int ID;
HBITMAP hbm;
public:
Func(){}
void setData(HWND, int, HBITMAP&);
HWND getHW();
int getID();
HBITMAP getBMP();
void setData(HWND, int, HBITMAP);
void AdjustControlSize(HWND, RECT, RECT*); ///Ajusteaza dimensiunea display-ului(ATM) la dimensiune ecranului
void PaintMainWindow(HWND, HBITMAP);
void PaintWindowDC(HWND, int, HBITMAP, int, int, int, int);
void PaintWindow(HWND, int, HBITMAP, int x, int y, int, int);
void DrawTextFonts(HWND, int , char[]);
};
#endif // FUNCTION2_H_INCLUDED