Fix UI restore when window is resized while in loading screen
[ryzomcore.git] / nelns / login_system / nel_launcher_windows_ext / PictureHlp.h
blob70095ebf7cb7fc037669502fdf6a529be4faa222
1 // PictureHlp.h: interface for the CPictureHlp class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_PICTUREHLP_H__84D3E504_630B_45D5_9F81_ED53E062F8FB__INCLUDED_)
6 #define AFX_PICTUREHLP_H__84D3E504_630B_45D5_9F81_ED53E062F8FB__INCLUDED_
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
12 #define HIMETRIC_INCH 2540
13 #define MAP_LOGHIM_TO_PIX(x,ppli) ( ((ppli)*(x) + HIMETRIC_INCH/2) / HIMETRIC_INCH )
15 class CPictureHlp
17 public:
18 CPictureHlp();
19 virtual ~CPictureHlp();
20 void LoadPictureFile(LPCTSTR szFile);
21 void LoadPicture(int iID);
22 void Display(CDC& dc, CRect& r, int iXdest = 0, int iYdest = 0);
24 private:
25 LPPICTURE m_pPicture;
28 #endif // !defined(AFX_PICTUREHLP_H__84D3E504_630B_45D5_9F81_ED53E062F8FB__INCLUDED_)