Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract associated icon from a file

Status
Not open for further replies.

pluis

Programmer
May 22, 2001
3
ES
The problem I have is when I try to obtain (and to save into a bmp image) the associated icon from a file like a word documment, image file, ...
I have the solution for Visual Basic but I have problems when I try to use functions in Foxpro like Extractassociatedicon or Extracticon cause of they need as a parameter the handle of instance for the main foxpro window. Is there somebody to know the solution? Thanks.

Pedro Luis R.
Spain





 
Hi my friend

FUNCTION GetMainWindH
llRemove=.F.
IF !("FOXTOOLS" $ SET('LIBRARY '))
SET LIBRARY TO FOXTOOLS.FLL ADDITIVE
llRemove=.T.
ENDIF
nhMainWind=MainHwnd( )

IF llRemove
RELEASE LIBRARY LibraryName
ENDIF
RETURN nhMainWind
Walid Magd
Engwam@Hotmail.com
 
First of all, Thank you very much for your fast answer.

Yes, ... with this function I can obtain the handle of the main foxpro windows, but not the handle of the instance (I can obtain it with the property hinstance in Visual Basic, but in foxpro...??)

Well, I go on with the doubt... but really thanks Wallid!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top