Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with MessageBoxIndirect API
Message
From
21/11/2005 14:56:31
 
 
To
21/11/2005 12:06:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01070654
Message ID:
01070896
Views:
29
This message has been marked as a message which has helped to the initial question of the thread.
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
Map
View

Click here to load this message in the networking platform