C language function:LoadIconWithScaleDown sample codes

Search sample code in the internet.It is the result.


TITLE : Supporting High DPI Displays with C#
using (var icon = DrawingUtilities.LoadIconWithScaleDown("logo.ico", (int)size, GetType().Assembly)).......
http://developer.rhino3d.com/guides/rhinocommon/supporting-high-dpi-displays/


TITLE : LoadIconWithScaleDown and LoadIconMetric fail when loading .ico for the SM_CXICON/SM_CYICON size | Marc Durdin's Blog
Heads up. The Windows API calls LoadIconWithScaleDown() and LoadIconMetric() fail when they try to load a 32~32 icon from an .ico file, when the current DPI is 96; that is, GetSystemMetrics(SM_CXICON) == 32. They work with resources and other image sizes........
http://marc.durdin.net/2016/05/loadiconwithscaledown-and-loadiconmetric-fail-when-loading-ico-for-the-sm_cxiconsm_cyicon-size/
TITLE : LoadIconWithScaleDown and LoadIconMetric fail when loading .ico for the SM_CXICON/SM_CYICON size | Marc Durdin's Blog
Debugging the call LoadIconWithScaleDown(0, L"sample.ico", 32, 32, &hIcon) ends up in the following code path when run with a standard DPI screen:.......
http://marc.durdin.net/2016/05/loadiconwithscaledown-and-loadiconmetric-fail-when-loading-ico-for-the-sm_cxiconsm_cyicon-size/
TITLE : LoadIconWithScaleDown and LoadIconMetric fail when loading .ico for the SM_CXICON/SM_CYICON size | Marc Durdin's Blog
if(!SUCCEEDED(LoadIconWithScaleDown(NULL, L"sample.ico", cx, cy, &hIcon)) {.......
http://marc.durdin.net/2016/05/loadiconwithscaledown-and-loadiconmetric-fail-when-loading-ico-for-the-sm_cxiconsm_cyicon-size/
TITLE : LoadIconWithScaleDown function (Windows)
HRESULT WINAPI LoadIconWithScaleDown(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/bb775703(v=vs.85).aspx
TITLE : winapi - Windows Volume Mixer icon size is too large - Stack Overflow
if ( FAILED( comctl32Loader.LoadIconWithScaleDown( theApp.m_hInstance, MAKEINTRESOURCE( res_id ), GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), &hIcon ) ) ) {.......
http://stackoverflow.com/questions/17949693/windows-volume-mixer-icon-size-is-too-large
TITLE : winapi - Windows Volume Mixer icon size is too large - Stack Overflow
if ( FAILED( comctl32Loader.LoadIconWithScaleDown( theApp.m_hInstance, MAKEINTRESOURCE( res_id ), GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON), &hIcon ) ) ) {.......
http://stackoverflow.com/questions/17949693/windows-volume-mixer-icon-size-is-too-large
TITLE : winapi - Windows Volume Mixer icon size is too large - Stack Overflow
if (SUCCEEDED(LoadIconWithScaleDown(g_hInstance,.......
http://stackoverflow.com/questions/17949693/windows-volume-mixer-icon-size-is-too-large
TITLE : XMessageBox - A reverse-engineered MessageBox() - CodeProject
since LoadIconMetric(), and LoadIconWithScaleDown() seem superior to LoadImage() which I first tried (it did not seem to work for LR_SHARED icons for desired DPI changed size), all of which seem superior to LoadIcon() when used in Vista or higher........
http://www.codeproject.com/Articles/1239/XMessageBox-A-reverse-engineered-MessageBox
TITLE : undefined reference to `LoadIconMetric' - freebasic.net
declare function LoadIconWithScaleDown(byval hinst as HINSTANCE, byval pszName as PCWSTR, byval cx as long, byval cy as long, byval phico as HICON ptr) as HRESULT.......
http://www.freebasic.net/forum/viewtopic.php@t=25888
TITLE : Making DPI-aware applications for Windows Vista
LoadIconMetric() & LoadIconWithScaleDown() are both new APIs in the Vista ComCtl32.dll. Look them up on MSDN, they'll do what you need better than LoadIcon() or LoadImage()........
http://www.rw-designer.com/DPI-aware
search Google

https://www.google.com/#q=LoadIconWithScaleDown