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 all
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
_
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)" t
Tim Roberts a écrit :
I think you're making this a lot harder than it needs to be.
import win32ui
import win32gui
import win32con
import win32api
ico_x = win32api.GetSystemMetrics(win32con.SM_CXICON)
ico_y = win32api.GetSystemMetrics(win32con.SM_CYICON)
large, smal
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.ex
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] ) )
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] ) )
>
> bitmapC
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 GetIconInf
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 GetIconInf
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
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 designed
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
Tim Roberts wrote:
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)
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 Extract
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)/
>
>
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 o
16 matches
Mail list logo