mirror of
				https://github.com/glfw/glfw.git
				synced 2025-11-04 06:15:07 +00:00 
			
		
		
		
	Win32: glfwSetWindowTaskbarProgress now emits GLFW_FEATURE_UNAVAILABLE on Windows Vista and older
This commit is contained in:
		
							parent
							
								
									f590075121
								
							
						
					
					
						commit
						74dac5cfb4
					
				@ -1601,6 +1601,12 @@ void _glfwSetWindowTaskbarProgressWin32(_GLFWwindow* window, const int progressS
 | 
			
		||||
    HRESULT res = S_OK;
 | 
			
		||||
    int32_t winProgressState = 0;
 | 
			
		||||
 | 
			
		||||
    if(!IsWindows7OrGreater())
 | 
			
		||||
    {
 | 
			
		||||
        _glfwInputErrorWin32(GLFW_FEATURE_UNAVAILABLE, "Win32: Taskbar progress is only supported on Windows 7 or newer");
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if(!window->win32.TaskbarList)
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user