English
Forum

Problems with Create("hPic... and resources.

 

Frank
Abbing

CompileMarkSeparation
Cls
var shell&=UseDLL("SHELL32.DLL")
var pic&=Create("hPic",shell&,"#7")
Print shell&
Print pic&
WaitInput
E

ought to this code not one Bitmap one Icon from the Shell32.dll Generate? Meldet me always "Bitmap not ladbar". with one Bitmap in lieu of one Icons GEHTS.
on the place find I The Doku something schwammig words...
 
12/06/08  
 




E.T.
now, where You it say: the trouble I had recent too first.
Überleg...  alas Yes: I want my Window-Menu a couple Images grant. there be I on The idea come, the Yes really any Images already as Icon in of my Dll lying and be on The same boundary punched How You even( the one "HPIC" even no Icon ausliest) .

and andersherum, want I one hIcon take: comes these stupid API, around the Image in that Menu "zu malen", again Nich clear so.
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/06/08  
 




Frank
Abbing
therefore my review on the Doku. on the place go too Icons called:


following Image formats go supported:

Bitmap (*.bmp, *.rle, *.dib)
Jpeg (*.jpg, *.jpe, *.jpeg)
Gif (*.gif)
Png (*.png)
Enhanced Metafile ( *.emf)
Metafile (*.wmf)
Icons (*.ico)
Cursor (*.cur)
 
12/06/08  
 




E.T.
I denk, we should the under [...]  with einreihen
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/06/08  
 




Andreas
Miethe


Frank Abbing


ought to this code not one Bitmap one Icon from the Shell32.dll Generate? Meldet me always "Bitmap not ladbar". with one Bitmap in lieu of one Icons GEHTS.
on the place find I The Doku something schwammig words...


Hello Frank,

find I do not schwammig.

Quote from Help
type > 0: s = name of/ one Bitmapressource in external File

I find It's all right clear from it forth, that it a Bitmapresoucre and no Iconresource his should.
a little bit verwirrend, must I admit, is thereby The Bildformat-Support below.

I have me for Icons a Workaround gebastelt.
CompileMarkSeparation
Cls

SUBPROC Create.hIcoPic

    Parameters Res$,ID&
    Var pic& = Create("hNewPic", 32,32,0)
    Startpaint pic&
    DrawLibIcon Res$,ID&,0,0
    EndPaint
    Return Pic&

ENDPROC

Var Pic& = Create("hIcoPic","shell32.dll",7)
DrawPic pic&,10,10,-1
WaitInput
End
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
12/06/08  
 




RGH
Hi,

Yes, The Help could here something eindeutiger his and again extra hereon allude, that the unterschiedlichen Formate the loading of Files (N=-1) relating. on the other hand come The angegebenen Dateiendungen too only Files to. ;)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
12/06/08  
 




Frank
Abbing
The data in the File are however same.

@Andreas: The quality the painted Icons is though so unfortunately miserable.
 
12/06/08  
 



Perhaps not so "miserabel", if one whom background before on hpic copies.
 
12/06/08  
 




Frank
Abbing
iF
Perhaps not so "miserabel", if one whom background before on hpic copies.


Teste it, but be not disappointed. lying simply on the transparency, The not correctly. übernommen becomes.
 
12/06/08  
 



The nice "Alias" on the edge, gell?

there must the hPic well 32 bit "breit" his, so windows einmixt.

You could but too a Resample-Skalierfunktion of hPics z.B. by inlineASM einproggen.

then could one z.B. with doppelter Size draw, and to Runterresampling would "der" nice edge again present.
 
12/06/08  
 




Frank
Abbing
In my special drop, where it me Yes around the Icons from the Shell32.dll goes, "kopiere" I The Icons simply via ImageList_Draw(Ex) from the Systemimagelist (therein find itself too any Icons from the shell32.dll). utterly smooth. is then even possible, The Icons in (Pop)Menues To using, see Screenshots.
too for others Icon-Resources recommend I sooner whom detour over a Image List. The Imagelist-functions are the site Icons correctly. transparent on a Bitmap To malen. without Umrechnungsfehler.

14 kB
Hochgeladen:12/06/08
Downloadcounter88
Download
17 kB
Hochgeladen:12/06/08
Downloadcounter74
Download
 
12/06/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.412 Views

Untitledvor 0 min.
Rainer Hoefs05/03/23
iF09/13/15
Tommy01/03/14

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie