Jump to content

Repaint icon control to match the size of the control.


Go to solution Solved by guinness,

Recommended Posts

Posted

Spy++ (distributed with visual studio), find the window and click "messages" in the context menu. It's normally a good idea to block some of the messages like WM_MOUSEMOVE that just cause clutter otherwise.

Try the same for the main window maybe.

Posted (edited)

I was under the impression that Windows icons only come in predefined sizes.

http://msdn.microsoft.com/en-gb/library/windows/desktop/ms648050%28v=vs.85%29.aspx#_win32_Icon_Sizes

So, I guess that, adjusting an icon to any other size (without first creating a standard image file) is not standard proceedure.

Edited by czardas
Posted

Thanks Mat.

Thanks czardas. That actually looks as though it will be of some use to me.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Solution
Posted

I will try CreateIconFromResourceEx() later on today, as primarily I will be using this as part of my ResourceEx UDF.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Well that seems to have fixed the issue so long as the icon is initially set on the control.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...