Tim Roberts a écrit :
Nicolas EISEN wrote:
I have a last little detail : the icon have the tranparence but the
bmp take this in black. In win32ui, there are not attribute to set the
background in white before write the bmp in DC ... an idea ?
Did you do any investigation of this at
Nicolas EISEN wrote:
I have a last little detail : the icon have the tranparence but the
bmp take this in black. In win32ui, there are not attribute to set the
background in white before write the bmp in DC ... an idea ?
Did you do any investigation of this at all? Did you do dir(hdc) to
Nicolas EISEN wrote:
the icon have the tranparence but the bmp
take this in black. In win32ui, there are not attribute to set the
background in white before write the bmp in DC ... an idea ?
Draw a white rectangle over the bmp before calling
DrawIcon?
--
Greg
Tim Roberts a écrit :
EISEN Nicolas wrote:
I'm lucky, I found ...
My Source :
/from win32gui import *
import win32con
from pywintypes import HANDLE
import win32ui
listHicon = ExtractIconEx(c:\OpenOffice.exe,0)
tupleIcon = GetIconInfo (HANDLE ( listHicon[0][0] ) )
Nicolas EISEN wrote:
Tim Roberts a écrit :
EISEN Nicolas wrote:
I'm lucky, I found ...
My Source :
/from win32gui import *
import win32con
from pywintypes import HANDLE
import win32ui listHicon = ExtractIconEx(c:\OpenOffice.exe,0)
tupleIcon = GetIconInfo
Tim Roberts wrote:
EISEN Nicolas wrote:
/ from win32gui import *
import win32con
listHicon = ExtractIconEx(c:\OpenOffice.exe,0)
test =
LoadImage(listHicon[0],c:\OpenOffice.exe,0,0,0,win32con.LR_DEFAULTSIZE)
tupleIcon = GetIconInfo(test)/
To use GetIconInfo
Tim Roberts wrote:
EISEN Nicolas wrote:
/ from win32gui import *
import win32con
listHicon = ExtractIconEx(c:\OpenOffice.exe,0)
test =
LoadImage(listHicon[0],c:\OpenOffice.exe,0,0,0,win32con.LR_DEFAULTSIZE)
tupleIcon = GetIconInfo(test)/
To use GetIconInfo
EISEN Nicolas wrote:
I'm lucky, I found ...
My Source :
/from win32gui import *
import win32con
from pywintypes import HANDLE
import win32ui
listHicon = ExtractIconEx(c:\OpenOffice.exe,0)
tupleIcon = GetIconInfo (HANDLE ( listHicon[0][0] ) )
bitmapColor = tupel [4]
Tim Roberts wrote:
EISEN Nicolas wrote:
I understand I will use these functions, but my problem is to found
how? I have difficulties to understand how use the arguments : I try
some combinations and it's doesn't work.
Two big problems:
1 – When I read MSDN’s API for LoadIcon, How I
EISEN Nicolas wrote:
/ from win32gui import *
import win32con
listHicon = ExtractIconEx(c:\OpenOffice.exe,0)
test =
LoadImage(listHicon[0],c:\OpenOffice.exe,0,0,0,win32con.LR_DEFAULTSIZE)
tupleIcon = GetIconInfo(test)/
To use GetIconInfo argument should be
EISEN Nicolas wrote:
I understand I will use these functions, but my problem is to found
how? I have difficulties to understand how use the arguments : I try
some combinations and it's doesn't work.
Two big problems:
1 – When I read MSDN’s API for LoadIcon, How I designed which exe
Files
EISEN Nicolas wrote:
Hi,
After search, I found many function to get Handler from exe (or dll)
file icons . But I don’t understand how use the Handler …
For example:
/ Import win32gui
i= win32gui.ExtractIcon(0,'e:\\dxdiag.exe',0)
icon = win32gui.LoadIcon ( i , 0)/
Or with ExtractIconEx
Hi,
After search, I found many function to get Handler from exe (or dll)
file icons . But I don’t understand how use the Handler …
For example:
/ Import win32gui
i= win32gui.ExtractIcon(0,'e:\\dxdiag.exe',0)
icon = win32gui.LoadIcon ( i , 0)/
Or with ExtractIconEx to get a list of all
EISEN Nicolas wrote:
Hi,
After search, I found many function to get Handler from exe (or dll)
file icons . But I don’t understand how use the Handler …
For example:
/ Import win32gui
i= win32gui.ExtractIcon(0,'e:\\dxdiag.exe',0)
icon = win32gui.LoadIcon ( i , 0)/
Or with
14 matches
Mail list logo