Is there any way to increase the resolution or the appearance of the icon in the PB dialog. In my resource file the same icon when showed in the Windows task bar is much crisper and is not pixelated like it is in PB.... thanks...Dean
Announcement
Collapse
No announcement yet.
Quality of ICO in PB dialogs
Collapse
X
-
Not sure what you mean here. At first it sounds like you are talking about PB itself, but I'm guessing you mean your app. If your app, then you need to design more icons for your ico file. You most likely only have a 16x16 icon in there. Add a 32x32 at least for better looking icons. Then 48x48 and up for XP/Vista looks, etc.sigpic
Mobile Solutions
Sys Analyst and Development
-
You should have at least two sizes for the icon - 16x16 and 32x32 (additionally, 48x48 is mostly used in later versions of Windows for "thumbnail" view). I use LoadImage where you can specify the size icon that you want and Windows will load the closest match.
Here is a snippet of code I use in one of my applications:
Code:Dialog Send ghMain, %WM_SETICON, %ICON_BIG, LoadImage(GetModuleHandle(ByVal %NULL), "#100", %IMAGE_ICON, 32, 32, 0) Dialog Send ghMain, %WM_SETICON, %ICON_SMALL, LoadImage(GetModuleHandle(ByVal %NULL), "#100", %IMAGE_ICON, 16, 16, 0)
Comment
Comment