-
Notifications
You must be signed in to change notification settings - Fork 7
/
thermo.h
44 lines (34 loc) · 1.73 KB
/
thermo.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*================================================================================*/
/* Copyright (C) 2009, Don Milne. */
/* All rights reserved. */
/* See LICENSE.TXT for conditions on copying, distribution, modification and use. */
/*================================================================================*/
#ifndef THERMO_H
#define THERMO_H
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */
/* T H E R M O M E T E R C O N T R O L S */
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */
/* --------------------------------------------------------------------------- */
/* Messages which the parent window can send to the thermometer control. */
/* --------------------------------------------------------------------------- */
#define THM_SETPCENTAGE (WM_USER+0)
/* nPcent = WPARAM
* nNumShow = LPARAM
*
* The fill level of the thermometer control is set by a 'pcentage complete' value
* passed in WPARAM. The number to actually be shown on the text of the control
* is passed in LPARAM. The number will be formatted using a 'wsprintf' format
* control string stored in the caption text for the control - if the caption
* is a null string then no text is displayed in the thermometer control.
*/
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */
/* implement thermometer control *
BOOL Thermo.RegisterClass(HINSTANCE hInstDLL);
* Register the thermometer control class.
*
*/
typedef struct {
BOOL (*RegisterClass) (HINSTANCE hInstDLL);
} Thermo_DEF;
extern Thermo_DEF Thermo;
#endif