Files
Work/mdiwin/PALTDLG.HPP
2024-08-07 09:16:27 -04:00

27 lines
596 B
C++
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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