我需要显示16x16个用于错误/警告/信息的幻灯。 不幸的是,LoadImage(0, 伊斯兰会议组织_*,IMAGE_ICON, 16, LR_SHARED)
总是给我32x32版本的icon。
我读了<代码>ShGetStockIconInfo,但这种编号只能从Vistasista 2006,我仍然需要支持XP。
Any ideas?
如果是的话,采用<代码>TImage成分的Im。
我需要显示16x16个用于错误/警告/信息的幻灯。 不幸的是,LoadImage(0, 伊斯兰会议组织_*,IMAGE_ICON, 16, LR_SHARED)
总是给我32x32版本的icon。
我读了<代码>ShGetStockIconInfo,但这种编号只能从Vistasista 2006,我仍然需要支持XP。
Any ideas?
如果是的话,采用<代码>TImage成分的Im。
问题在于,当你这样做时,你就能够拿到一星座,这是该系统首当其冲。 这将是大型的icon,通常为32x32。 这并不是你具体规定的规模。
What you can do is find the ID of the desired resource in user32.dll and use something like this:
LoadImage(GetModuleHandle( user32 ), MAKEINTRESOURCE(103), IMAGE_ICON,
16, 16, LR_DEFAULTCOLOR);
请打电话<代码>。 GetSystemtrics (SM_CXSMICON),以保持icon大小而不是硬代码16,但你可能已经知道这一点。
我不敢肯定,如果你们从用户32的资源中获取资源识别,或者即使它们保证它们将保持不同视窗版本的不变。 我的猜测是,它们会因为太多的方案会中断,而只是单纯的猜测。
my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...
Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...
i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...
In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...
What is the equivalent of SetLength using Oxygene? I m trying to size an integer array. var listIndexes: array of integer; begin setLength(listIndexes,5); // doesn t work end;
How can I monitor or visualize memory fragmentation of a delphi application?
I have consistently had IDE problems in Delphi/C++Builder for years, with every version. I usually just reboot, recompile, etc. and move on. However, I keep seeing others say that the IDE is rock ...
I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...