mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 20:57:02 +00:00
[MSPAINT] Don't show error message twice (#5715)
- Reduce display of error message on IDM_EDITCOPYTO and IDM_EDITPASTEFROM. - Introduce LockBitmap/UnlockBitmap mechanism for ImageModel and SelectionModel. CORE-19181, CORE-19182
This commit is contained in:
parent
98050f9139
commit
bbb33a6ed5
6 changed files with 50 additions and 24 deletions
|
@ -528,3 +528,15 @@ void SelectionModel::SwapWidthAndHeight()
|
|||
m_rc.right = m_rc.left + cy;
|
||||
m_rc.bottom = m_rc.top + cx;
|
||||
}
|
||||
|
||||
HBITMAP SelectionModel::LockBitmap()
|
||||
{
|
||||
HBITMAP hbm = m_hbmColor;
|
||||
m_hbmColor = NULL;
|
||||
return hbm;
|
||||
}
|
||||
|
||||
void SelectionModel::UnlockBitmap(HBITMAP hbmLocked)
|
||||
{
|
||||
m_hbmColor = hbmLocked;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue