31 lines
483 B
C
31 lines
483 B
C
|
|
||
|
// hex_edit.h : hex edit
|
||
|
//
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <Windows.h>
|
||
|
#include <string>
|
||
|
|
||
|
class hex_edit
|
||
|
{
|
||
|
HWND hwnd_;
|
||
|
bool hz_;
|
||
|
|
||
|
static std::wstring fn_prop_key;
|
||
|
static std::wstring obj_prop_key;
|
||
|
static const wchar_t* hex_z;
|
||
|
static const wchar_t* hex_e;
|
||
|
static LRESULT __stdcall hex_edit_proc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp);
|
||
|
|
||
|
public:
|
||
|
hex_edit();
|
||
|
~hex_edit();
|
||
|
|
||
|
public:
|
||
|
HWND attach(HWND hwnd);
|
||
|
void clear(void);
|
||
|
unsigned value(void);
|
||
|
void set_value(unsigned v);
|
||
|
};
|