loginGui.h 907 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef NULLSOFT_AUTH_LOGIN_GUI_OBJECT_HEADER
  2. #define NULLSOFT_AUTH_LOGIN_GUI_OBJECT_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. class LoginGuiObject
  8. {
  9. public:
  10. typedef enum
  11. {
  12. iconNone = -1,
  13. iconInfo = 0,
  14. iconWarning = 1,
  15. iconError = 2,
  16. iconQuestion = 3,
  17. } IconType;
  18. protected:
  19. LoginGuiObject();
  20. ~LoginGuiObject();
  21. public:
  22. static HRESULT InitializeThread();
  23. static HRESULT UninitializeThread();
  24. static HRESULT QueryInstance(LoginGuiObject **instance);
  25. public:
  26. ULONG AddRef();
  27. ULONG Release();
  28. HRESULT Reset();
  29. HRESULT GetIconDimensions(INT *pWidth, INT *pHeight);
  30. HBITMAP GetIcon(INT iconId, RECT *prcIcon);
  31. HFONT GetTitleFont();
  32. HFONT GetEditorFont();
  33. HFONT GetTextFont();
  34. private:
  35. ULONG ref;
  36. HBITMAP bitmapIcons;
  37. HFONT fontTitle;
  38. HFONT fontEditor;
  39. HFONT fontText;
  40. };
  41. #endif //NULLSOFT_AUTH_LOGIN_GUI_OBJECT_HEADER