mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 23:53:07 +00:00
[MSPAINT] Fix Copy-To-File feature (#5877)
The Copy-To-File feature had some bugs that the user couldn't save. - Modify SelectionModel::GetSelectionContents. - Delete SelectionModel::CopyBitmap, SelectionModel::LockBitmap, and SelectionModel::UnlockBitmap functions. CORE-19186
This commit is contained in:
parent
e627c3b00e
commit
d7ece626cb
8 changed files with 51 additions and 59 deletions
|
@ -361,10 +361,10 @@ void CFontsDialog::InitFontSizes()
|
|||
HWND hwndSizes = GetDlgItem(IDD_FONTSSIZES);
|
||||
ComboBox_ResetContent(hwndSizes);
|
||||
|
||||
TCHAR szText[16];
|
||||
WCHAR szText[16];
|
||||
for (UINT i = 0; i < _countof(s_sizes); ++i)
|
||||
{
|
||||
wsprintf(szText, TEXT("%d"), s_sizes[i]);
|
||||
StringCchPrintfW(szText, _countof(szText), L"%d", s_sizes[i]);
|
||||
INT iItem = ComboBox_AddString(hwndSizes, szText);
|
||||
if (s_sizes[i] == (INT)registrySettings.PointSize)
|
||||
ComboBox_SetCurSel(hwndSizes, iItem);
|
||||
|
@ -372,7 +372,7 @@ void CFontsDialog::InitFontSizes()
|
|||
|
||||
if (ComboBox_GetCurSel(hwndSizes) == CB_ERR)
|
||||
{
|
||||
wsprintf(szText, TEXT("%d"), (INT)registrySettings.PointSize);
|
||||
StringCchPrintfW(szText, _countof(szText), L"%d", (INT)registrySettings.PointSize);
|
||||
::SetWindowText(hwndSizes, szText);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue