Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with MessageBoxIndirect API
Message
De
21/11/2005 14:56:31
 
 
À
21/11/2005 12:06:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01070654
Message ID:
01070896
Vues:
28
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform