27 lines
596 B
C++
27 lines
596 B
C++
#ifndef _PALETTEDIALOG_HPP_
|
||
#define _PALETTEDIALOG_HPP_
|
||
#include <mdiwin/dwindow.hpp>
|
||
|
||
class PaletteDialog : public DWindow
|
||
{
|
||
public:
|
||
PaletteDialog(HWND hParent,HPALETTE hPalette);
|
||
~PaletteDialog();
|
||
void showPalette(void);
|
||
private:
|
||
enum {DELTAX=10,DELTAY=10};
|
||
int DlgProc(UINT message,WPARAM wParam,LPARAM lParam);
|
||
void conformWindow(int heightRegion)const;
|
||
void drawPaletteColors(void)const;
|
||
void makeClientRect(RECT &screenRect)const;
|
||
void setWindowSize(void)const;
|
||
void dumpPalette(void)const;
|
||
|
||
HWND mhParent;
|
||
HWND mhGroupWindow;
|
||
HPALETTE mhPalette;
|
||
WORD mNumColors;
|
||
};
|
||
#endif
|
||
|
||
|