1370b324cSopenharmony_ci// Windows/Control/Static.h
2370b324cSopenharmony_ci
3370b324cSopenharmony_ci#ifndef ZIP7_INC_WINDOWS_CONTROL_STATIC_H
4370b324cSopenharmony_ci#define ZIP7_INC_WINDOWS_CONTROL_STATIC_H
5370b324cSopenharmony_ci
6370b324cSopenharmony_ci#include "../Window.h"
7370b324cSopenharmony_ci
8370b324cSopenharmony_cinamespace NWindows {
9370b324cSopenharmony_cinamespace NControl {
10370b324cSopenharmony_ci
11370b324cSopenharmony_ciclass CStatic: public CWindow
12370b324cSopenharmony_ci{
13370b324cSopenharmony_cipublic:
14370b324cSopenharmony_ci  HANDLE SetImage(WPARAM imageType, HANDLE handle) { return (HANDLE)SendMsg(STM_SETIMAGE, imageType, (LPARAM)handle); }
15370b324cSopenharmony_ci  HANDLE GetImage(WPARAM imageType) { return (HANDLE)SendMsg(STM_GETIMAGE, imageType, 0); }
16370b324cSopenharmony_ci
17370b324cSopenharmony_ci  #ifdef UNDER_CE
18370b324cSopenharmony_ci  HICON SetIcon(HICON icon) { return (HICON)SetImage(IMAGE_ICON, icon); }
19370b324cSopenharmony_ci  HICON GetIcon() { return (HICON)GetImage(IMAGE_ICON); }
20370b324cSopenharmony_ci  #else
21370b324cSopenharmony_ci  HICON SetIcon(HICON icon) { return (HICON)SendMsg(STM_SETICON, (WPARAM)icon, 0); }
22370b324cSopenharmony_ci  HICON GetIcon() { return (HICON)SendMsg(STM_GETICON, 0, 0); }
23370b324cSopenharmony_ci  #endif
24370b324cSopenharmony_ci};
25370b324cSopenharmony_ci
26370b324cSopenharmony_ci}}
27370b324cSopenharmony_ci
28370b324cSopenharmony_ci#endif
29