mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-15 10:11:44 -06:00
3.13
This commit is contained in:
29
Windows/Control/Static.h
Executable file
29
Windows/Control/Static.h
Executable file
@@ -0,0 +1,29 @@
|
||||
// Windows/Control/Static.h
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __WINDOWS_CONTROL_STATIC_H
|
||||
#define __WINDOWS_CONTROL_STATIC_H
|
||||
|
||||
#include "Windows/Window.h"
|
||||
#include "Windows/Defs.h"
|
||||
|
||||
namespace NWindows {
|
||||
namespace NControl {
|
||||
|
||||
class CStatic: public CWindow
|
||||
{
|
||||
public:
|
||||
HICON SetIcon(HICON icon)
|
||||
{ return (HICON)SendMessage(STM_SETICON, (WPARAM)icon, 0); }
|
||||
HICON GetIcon()
|
||||
{ return (HICON)SendMessage(STM_GETICON, 0, 0); }
|
||||
HANDLE SetImage(WPARAM imageType, HANDLE handle)
|
||||
{ return (HANDLE)SendMessage(STM_SETIMAGE, imageType, (LPARAM)handle); }
|
||||
HANDLE GetImage(WPARAM imageType)
|
||||
{ return (HANDLE)SendMessage(STM_GETIMAGE, imageType, 0); }
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user