English
Source / code snippets

Dialog-Window Repaint Restaurierende

 

Frank
Abbing
For this To care, that the Content of Dialogfenstern again restauriert becomes, is none so heavy. here a Possibility with XPIA. Assemblersubclassing has thereby whom benefit, not whom Profan-Fastmode dependent To his. The eigentliche Fensterrestaurierung happened to reinem Profan!
CompileMarkSeparation
 {$iq}
Declare x&, y&, text$, dialog&, xpiadll&, adresse&
xpiadll&=UseDll(xpia$)

If 0

    ASMINCLUDE
    .data
    oldproc   dd  0
    adresse   dd  0
    .code
    ; ________________________________________________________________________________________________________________
    subclass proc hWnd:DWORD, uMsg:DWORD, wParam:DWORD, lParam:DWORD
    invoke CallWindowProc,oldproc,hWnd,uMsg,wParam,lParam

    .if uMsg==WM_PAINT

        Call adresse

    .endif

    ret
    subclass endp
    ; ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

ASMEND

EndIf

Hiermit wird das Dialogfester restauriert.

Proc Paint

StartPaint dialog&
DrawText 10,10,Probetext
DrawIcon Profan, 10, 30
EndPaint

EndProc

WindowTitle Hauptfenster
WindowStyle 31
Window 0,0-100,100
UseFont MS Sans Serif,13,0,0,0,0
SetDialogFont 1
dialog& = Create(WINDOW, %hwnd, Dialogfenster, (%maxx-400), (%maxy-330), 400, 300)
adresse&=ProcAddr(Paint, 0)
Subclassing starten

ASMSTART StartSubclassing(dialog&,adresse&)

m2m adresse,para2
invoke SetWindowLong,para1,GWL_WNDPROC,addr subclass
mov oldproc,eax

ASMEND

Paint

While 1

waitInput
Case %key=2:BREAK

EndWhile

DestroyWindow(%hwnd)
FreeDll xpiadll&
ass=s4 href='./../../function-references/XProfan/end/'>End
 
12/13/06  
 




Jac
de
Lad
with XProfan 11 might the even yet plenty plainer his.
 
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
07/27/08  
 




Detlef
Jagolski
Hello Jac,
was already with XProfan 8 no trouble.

Greeting
Detlef
 
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
07/27/08  
 




Jac
de
Lad
I meant, that it now without Assembler goes. How would have You the because made?
 
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
07/27/08  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.933 Views

Untitledvor 0 min.
RudiB.02/28/20
Detlef Jagolski04/26/14
Peter Gückstock02/24/13
liveFamilie06/23/12
More...

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