View previous topic :: View next topic |
Author |
Message |
Steve
Joined: 23 Feb 2007 Posts: 73
|
Posted: Tue Feb 10, 2015 1:35 pm Post subject: Dynamically update %ic after loading from DLL |
|
|
In the past we have built the resources into the .exe and using %ic with a subsequent WINDOW_UPDATE@ has permitted the icon to be dynamically updated. For example, on the Clearwin+ dialog we have an icon to represent left and another for right : when we depress the left / right keyboard keys we immediately update the icon.
This does not now happen when getting the icon from the application's DLL. Using GetModuleHandle and LoadImage and then %ic is perfectly fine for the initial display of the icon within the Clearwin+ dialog. But when we recognise the keyboard arrow key - using %ac - and perform the callback the icon update fails. When escaping and re-presenting the Clearwin+ dialog - with the new icon handle - the intended icon now displays fine.
Has the environment change caused a problem ? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Tue Feb 10, 2015 5:44 pm Post subject: |
|
|
I think that we would need a short sample program and dll in order to work out the difference. |
|
Back to top |
|
|
|