C language function:LoadIconMetric sample codes

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


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 function (Windows)
HRESULT LoadIconMetric(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/bb775701(v=vs.85).aspx
TITLE : LoadIconWithScaleDown function (Windows)
HRESULT hr = LoadIconMetric(hInstance, MAKEINTRESOURCE(IDI_ICON), LIM_SMALL, &nidIconData.hIcon);.......
http://msdn.microsoft.com/en-us/library/windows/desktop/bb775701(v=vs.85).aspx
TITLE : Notifications and the Notification Area (Windows)
LoadIconMetric(hInst, MAKEINTRESOURCE(IDI_SMALL), LIM_SMALL, &(nid.hIcon));.......
http://msdn.microsoft.com/ja-jp/library/windows/desktop/ee330740(v=vs.85).aspx
TITLE : c++ - Clear notification tray icon, windows shell - Stack Overflow
LoadIconMetric(g_hInst, MAKEINTRESOURCE(IDI_NOTIFICATIONICON), LIM_SMALL, &nid.hIcon);.......
http://stackoverflow.com/questions/36789852/clear-notification-tray-icon-windows-shell
TITLE : c++ - Clear notification tray icon, windows shell - Stack Overflow
LoadIconMetric( hInstance, MAKEINTRESOURCE( IDI_NOTIFICATIONICON ), LIM_SMALL, &nid.hIcon );.......
http://stackoverflow.com/questions/36789852/clear-notification-tray-icon-windows-shell
TITLE : visual studio 2008 - Does windows preload ComCtrl32.dll in an app? - Stack Overflow
LoadIconMetric(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDI_ICON_HAPPY), LIM_SMALL, &(tnd_Happy.hIcon));.......
http://stackoverflow.com/questions/4098076/does-windows-preload-comctrl32-dll-in-an-app
TITLE : visual studio 2008 - Does windows preload ComCtrl32.dll in an app? - Stack Overflow
// Need CommCtrl v6 for LoadIconMetric().......
http://stackoverflow.com/questions/4098076/does-windows-preload-comctrl32-dll-in-an-app
TITLE : Vista UAC: The Definitive Guide - CodeProject
Alternatively, LoadIcon() with IDI_SHIELD can be used to get an HICON, but that apparently loads a "low-quality" shield icon. The new LoadIconMetric() API for Vista is a better solution because it loads a "high-quality" shield icon, which will apparently be used for high DPI displays........
http://www.codeproject.com/Articles/19165/Vista-UAC-The-Definitive-Guide
TITLE : undefined reference to `LoadIconMetric' - freebasic.net
IF pLoadIconMetric THEN FUNCTION = pLoadIconMetric(hinst, pszName, lims, phico).......
http://www.freebasic.net/forum/viewtopic.php@t=25888
TITLE : undefined reference to `LoadIconMetric' - freebasic.net
declare function LoadIconMetric(byval hinst as HINSTANCE, byval pszName as PCWSTR, byval lims as long, byval phico as HICON ptr) as HRESULT.......
http://www.freebasic.net/forum/viewtopic.php@t=25888
TITLE : undefined reference to `LoadIconMetric' - freebasic.net
then everything is ok, but I simply can't get the LoadIconMetric() to work and I really would like to make an Notify Icon example/tutorial out of that and the original windows sample uses this function because of the high dpi functionality. So how the hell are the FB import libraries made?.......
http://www.freebasic.net/forum/viewtopic.php@t=25888
TITLE : undefined reference to `LoadIconMetric' - freebasic.net
DIM hr AS HRESULT = AfxLoadIconMetric(NULL, IDI_APPLICATION, LIM_LARGE, @phico).......
http://www.freebasic.net/forum/viewtopic.php@t=25888
TITLE : undefined reference to `LoadIconMetric' - freebasic.net
FUNCTION = pLoadIconMetric(hinst, pszName, lims, phico).......
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=LoadIconMetric