General information
Category:
Coding, syntax & commands
Hi,
"If there was a way to load an icon file with an X lpszIcon resource identifier into a Y hInstance, we could pass those parameters to messageboxindirect and have a messagebox with custom icons, loaded from an "ico" file."
you can put your icons into a resource only DLL compiled with Visual Studio (C++).
just compile an empty DLL with a some icons in the resource file.
then you can use the LoadLibrary API in VFP to load the DLL and get it's HINSTANCE.
e.g
DECLARE INTEGER LoadLibrary IN kernel32.dll STRING
DECLARE INTEGER FreeLibrary IN kernel32.dll INTEGER
hInstance = LoadLibray("yourresources.dll")
&& ..
FreeLibrary(hInstance)
Regards
Christian
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only