mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 17:40:26 +00:00
[MSPAINT] Support JPEG/PNG/GIF/TIFF wallpapers (#6632)
Improve usability. JIRA issue: CORE-19485 - Enable the menu items to set the wallpapars. - Save the current bitmap as file Wallpaper1.bmp in CSIDL_LOCAL_APPDATA folder. - Support JPEG/PNG/GIF/TIFF files in RegistrySettings::SetWallpaper.
This commit is contained in:
parent
c5e6456377
commit
6af1813fda
2 changed files with 25 additions and 16 deletions
|
@ -642,20 +642,6 @@ LRESULT CMainWindow::OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHan
|
|||
|
||||
void CMainWindow::ProcessFileMenu(HMENU hPopupMenu)
|
||||
{
|
||||
LPCWSTR dotext = PathFindExtensionW(g_szFileName);
|
||||
BOOL isBMP = FALSE;
|
||||
if (_wcsicmp(dotext, L".bmp") == 0 ||
|
||||
_wcsicmp(dotext, L".dib") == 0 ||
|
||||
_wcsicmp(dotext, L".rle") == 0)
|
||||
{
|
||||
isBMP = TRUE;
|
||||
}
|
||||
|
||||
UINT uWallpaperEnabled = ENABLED_IF(g_isAFile && isBMP && g_fileSize > 0);
|
||||
::EnableMenuItem(hPopupMenu, IDM_FILEASWALLPAPERPLANE, uWallpaperEnabled);
|
||||
::EnableMenuItem(hPopupMenu, IDM_FILEASWALLPAPERCENTERED, uWallpaperEnabled);
|
||||
::EnableMenuItem(hPopupMenu, IDM_FILEASWALLPAPERSTRETCHED, uWallpaperEnabled);
|
||||
|
||||
for (INT iItem = 0; iItem < MAX_RECENT_FILES; ++iItem)
|
||||
RemoveMenu(hPopupMenu, IDM_FILE1 + iItem, MF_BYCOMMAND);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue