English
Forum

Image disappears to Überlagerung

 

Jac
de
Lad
Hello Frank!

look you time ask the View source on. Why disappears the image, after the window of a others overlay watts? Can what against it do?
CompileMarkSeparation
declare pdlg&,clo&,dll&,pic&,w&,h&,f$
DEF LoadExtImage(1) !"ProSpeed","LoadExtImage"
DEF FreeExtBmp(1) !"ProSpeed","FreeExtBmp"
DEF GetBmpWidth(1) !"ProSpeed","GetBmpWidth"
DEF GetBmpHeight(1) !"ProSpeed","GetBmpHeight"
DEF CopyExtBmp(9) !"ProSpeed","CopyExtBmp"
cls
dll&=UseDLL("Prospeed.dll")
f$="d:\neue dateien\halo.jpg"anpassen!
pic&=LoadExtImage(Addr(f$))
w&=GetBmpWidth(pic&)
h&=GetBmpHeight(pic&)
pdlg&=Create("Dialog",%HWnd,f$,(%MaxX-w&)/2,(%MaxY-h&-32-%CyCaption)/2,w&,h&+32+%CyCaption)
clo&=Create("Button",pdlg&,"Schließen",w&-84,h&,80,24)
StartPaint pdlg&
CopyExtBmp(%HDC,0,0,w&,h&,pic&,0,0,0)
CopyExtBmp(%HDC2,0,0,w&,h&,pic&,0,0,0)
EndPaint
FreeExtBmp(pic&)

whilenot Or(Clicked(clo&),Equ(%Key,2))

    waitinput

wend

FreeDLL dll&
end

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/26/06  
 




Frank
Abbing
Hi Jac,

this is even so, if You one Image to one Dialog-Window lay. Profan supported The Bilderneuerung only on the Mainwindow.
remedy can you create, if You WM_PAINT query and yourself new draw, or one Staticcontrol using, with the one Image occupied is. for either modes find You into Profanforen suitable Threads.
 
08/27/06  
 




Jac
de
Lad
thanks. (So I Have the now so understood: If I the image on one Static lay Gibts no Problems More?! I probiers from)

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/27/06  
 



No this is so neither integrally correctly.

You should one PictureStatic  take  [...] 
 
08/27/06  
 




Jac
de
Lad
thanks, I probiers from...I machs now with Timer; sees really not so bad from!

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/27/06  
 




Frank
Abbing
[quote:172d9ex7f4]thanks. (So I Have the now so understood: If I the image on one Static lay Gibts no Problems More?! I probiers from)

No this is so neither integrally correctly.
You should one PictureStatic take [...] [/quote:172d9ex7f4]
naturally must the Static one Image show can, no Texts. Something like beget You on simplest point so:
CompileMarkSeparation
static&=Control("STATIC", "", $54000301, 0,0, 640, 480, dialogfenster&, 2000, %hInstance, $00020000)
>

whom last Parameter can you on zero settle, if the part none welt having should.
CompileMarkSeparation
text$="Bildname.jpg"
bild&=LoadExtImage(addr(text$))
staticbild&=CreateExtBmp(%hdc,640,480)   Grösse des Statics
SizeExtBmp(staticbild&,0,0,640,480,bild&,0,0,GetBmpWidth(bild&),GetBmpHeight(bild&),0)
newbitmap&=~CreateCompatibleBitmap(staticbild&,640,480)
oldbitmap&=~SelectObject(staticbild&,newbitmap&)
Sendmessage(static&,$0172,0,oldbitmap&)<

with End of program:
CompileMarkSeparation
newbitmap&=SelectObject(staticbild&,oldbitmap&)
DeleteObject newbitmap&
FreeAllExtBmps()

under WindowsXP are Bitmap-Statics plainer To manage. there is a further Grössen-Flag hinzugekommen.
this code functions so but ex windows95.

[quote:172d9ex7f4]thanks, I probiers from...I machs now with Timer; sees really not so bad from! [/quote:172d9ex7f4]
Äh, uses but Unmengen Systempower. Machs over Static. is ne secure thing.
 
08/27/06  
 




Jac
de
Lad
Ui, thanks Frank, I probiers from!
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/28/06  
 




Frank
Abbing
blow not...
 
08/28/06  
 




Jac
de
Lad
the functions nevertheless not. my Timer-Solution has too maximum a Auslastung of 19% and the too only, if I the window with high speed over the Desktop zerre. means stay I with of my Timer-Variante!

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/28/06  
 



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.138 Views

Untitledvor 0 min.
Uwe Lang12/28/12
Andreas Koch12/19/11

Themeninformationen

this Topic has 3 subscriber:

Jac de Lad (5x)
Frank Abbing (3x)
iF (1x)


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