Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Static.h « Control « Windows - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5dded0ecfa73c6fc3cd0bc2eeb9088ebd643fad4 (plain)
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
// Windows/Control/Static.h

#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