English
Forum

ProSpeedSprites not WINDOW but in @CREATE("Win

 
Hello Community,
have there time following question:
WINDOW xPos, yPos - xWidth, yWidth functions with ProSpeed wonderful, if really only with a (knows I but not as accurate) Window worked becomes. If I however with @Create(Window... and Handles works would functions it so not any more. who can me help, ProSpeedSprites too in Windows, The with @Create(Window... or @Create(dialog... anglegt get, view?
Vielen Thanks for Your Answer.
Tschüss
Stefan quick
 
04/19/04  
 



Hello Stefan,
to the create the Dialogs must You which Device Context detect...

def GetDC(1) !USER32,GetDC
dlg%=create(DIALOG,%hwnd,,80,40,400,300)
dlgdc&=GetDC(dlg%)

...and the whole %hdcs through dlgdc&s supplant, z.B....

Bild&=LoadExtBmp(addr(File$),dlgdc&)
Spr&=InitSprite(Bild&,dlgdc&,...)

everything clear?
Sebastian
 
04/19/04  
 



Hi,

the whole goes too yet plainer, and integrally in Profan:

handle&=@Create(Window...)

Startpaint handle&
Dialoghandle&=%HDC
EndPaint

Dialoghandle& has now whom HDC of betreffenden dialog stored and can instead of %HDC uses go.
but Sebastians Solution is just as well!

Greeting, Frank
 
04/19/04  
 




ByteAttack
and How see it from with of/ one Fensterkopie one Dialogs? goes the at all?
CompileMarkSeparation
Startpaint handle&
Dialoghandle&=%HDC
Dialoghandle2&=%HDC2
EndPaint<
pre>

functions unfortunately not....
 
Website:  [...] 
Facebook:  [...] 
11/27/07  
 




Thomas
Freier
I had with the the TwJpeg.dll seinerzeit made,
CompileMarkSeparation
goes sure too now with XProfan 10 without TwJpeg.dll
 
Gruß Thomas
Windows XP SP2, XProfan X2
11/27/07  
 




Frank
Abbing
Marc-Gordon
and How see it from with of/ one Fensterkopie one Dialogs? goes the at all?
CompileMarkSeparation
Startpaint handle&
Dialoghandle&=%HDC
Dialoghandle2&=%HDC2
EndPaint<
pre>

functions unfortunately not....


You want whom Fensterinhalt copy? goes integrally normal with CopyExtBmp(). or Dou you mean still what other?
and verwechsle not a Dialoghandle with a HDC, the can't klappen...
 
11/27/07  
 




ByteAttack
I mean it so: If I in a Dialog-Window one background have, and Sprits drüber walk let, need I still a Fensterkopie to that Refreschen or. so the background not deleted becomes. or? in the Mainwindow would the simply hdc2
 
Website:  [...] 
Facebook:  [...] 
11/28/07  
 




Frank
Abbing
I see. in the Dialog-Window must You only a clear HDC produce and the FensterHDC copy. are Yes only two Lines code, with colon a...
 
11/28/07  
 




ByteAttack
does me sorrow Frank. I blicks simply not!
CompileMarkSeparation
USERMESSAGES 16
Declare psdll&,temp$,bmp&,exit%,Fenster&,Dialoghandle&,LeerHDC&
Def GetSysColor(1) !USER32,GetSysColor
psdll&=usedll($ProgDir+ProSpeed.dll)
 $I Prospeed_Funktionen.inc
Set(TrueColor,1)
WindowStyle 44
WindowTitle %hwnd
Window 0,0-100,100
CLS GetSysColor(15)
Fenster&=Create(Window,%hwnd,Fenster,((%maxX/2)-320),((%maxY/2)-240),640,480)
temp$=$ProgDir+back.bmp Irgendeinbild
bmp&=LoadExtImage(addr(temp$))
StartPaint Fenster&
CLS GetSysColor(15)
Dialoghandle&=%HDC
EndPaint
CopyExtBmp(Dialoghandle&,0,0,%maxX,%maxY,bmp&,0,0,-1)
LeerHDC&=CreateExtBmp(Dialoghandle&,%maxX,%maxY)
CopyExtBmp(LeerHDC&,0,0,%maxX,%maxY,Dialoghandle&,0,0,-1)

WhileNot exit%

    WaitInput
    Case %Umessage=16:exit%=1

EndWhile

FreeExtBmp(bmp&)
FreeExtBmp(LeerHDC&)
freedll psdll&

functions too net. give me still please times one small example (Please, Please...)
 
Website:  [...] 
Facebook:  [...] 
11/29/07  
 




Thomas
Freier
Marc, what want You make. slopes time an example (The work have I aborted, there it then still not used watts) on, where I *.bmp einsetze. The Hardcopy is from the application Bootsplatzverwaltung, where so did i names and Objects into Control set.

503 kB
Hochgeladen:11/29/07
Downloadcounter146
Download
128 kB
Hochgeladen:11/29/07
Downloadcounter153
Download
 
Gruß Thomas
Windows XP SP2, XProfan X2
11/29/07  
 




ByteAttack
simply only Sprites over one Dialog-Window run, without the the background or. the Wallpapers on the Dialog-Window deleted becomes.
 
Website:  [...] 
Facebook:  [...] 
11/29/07  
 




Frank
Abbing
Marc, look you simply time the demonstration FA_SpriteDemo2.prf on. there becomes it Yes made.
an possible Rekonstruktion the Hintergrundsfensters must in the drop naturally manually erfolgen, each WM_PAINT must You The copy to dialog->%HDC copy... How had.
 
11/29/07  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.280 Views

Untitledvor 0 min.
Thomas Freier04/07/11

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