mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 05:22:57 +00:00
[MSPAINT_NEW] initialize ImageModel member variables
svn path=/trunk/; revision=68563
This commit is contained in:
parent
4317118d34
commit
6fd38c7880
2 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,14 @@ void ImageModel::NotifyImageChanged()
|
||||||
imageArea.SendMessage(WM_IMAGEMODELIMAGECHANGED);
|
imageArea.SendMessage(WM_IMAGEMODELIMAGECHANGED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImageModel::ImageModel()
|
||||||
|
{
|
||||||
|
currInd = 0;
|
||||||
|
undoSteps = 0;
|
||||||
|
redoSteps = 0;
|
||||||
|
imageSaved = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
void ImageModel::CopyPrevious()
|
void ImageModel::CopyPrevious()
|
||||||
{
|
{
|
||||||
DeleteObject(hBms[(currInd + 1) % HISTORYSIZE]);
|
DeleteObject(hBms[(currInd + 1) % HISTORYSIZE]);
|
||||||
|
|
|
@ -18,6 +18,7 @@ public:
|
||||||
int redoSteps;
|
int redoSteps;
|
||||||
BOOL imageSaved;
|
BOOL imageSaved;
|
||||||
|
|
||||||
|
ImageModel();
|
||||||
void CopyPrevious(void);
|
void CopyPrevious(void);
|
||||||
void Undo(void);
|
void Undo(void);
|
||||||
void Redo(void);
|
void Redo(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue