forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dynamically update %ic after loading from DLL

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Steve



Joined: 23 Feb 2007
Posts: 73

PostPosted: Tue Feb 10, 2015 1:35 pm    Post subject: Dynamically update %ic after loading from DLL Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7924
Location: Salford, UK

PostPosted: Tue Feb 10, 2015 5:44 pm    Post subject: Reply with quote

I think that we would need a short sample program and dll in order to work out the difference.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group