English
Opportunities and suggestions

11B15: wm_paint by SubClassProc

 
How can I prevent the this View source in a Endlosschleife expires?
CompileMarkSeparation
03/04/08  
 



because one %hWnds Style changes: (WS_CLIPCHILDREN)
CompileMarkSeparation
cls
SetStyle %hwnd, 1, GetStyle(%hwnd, 1) | $02000000  WS_CLIPCHILDREN// kein Flimmern z.B. beim Skalieren
subClass %hWnd,1

while 1

    waitInput

wend

subClassProc

    if SubClassMessage(%hWnd,15) wm_paint

    endIf

03/05/08  
 




RGH
While 1 : wend is always a Endlosschleife!

but i think, You want know, How You it anstellst, that one Draw wm_Paint-cut offed not same a new wm_Paint-Message auslöst and therefore a Endlosschleife arise.
For this there in the windows-API the Funktionspaar BeginPaint/EndPaint:
CompileMarkSeparation
The counter i& is there, so one sees, when neugezeichnet becomes. If you ~BeginPaint and ~EndPaint drin have, as it almost each Windowsprogramm it has, then becomes z.B. only at change the Size the Mainwindow neugezeichnet. Kommentierst You these Lines from, becomes to the first draw constantly neugezeichnet. (No fear: discontinue by the Closing-Button goes naturally nevertheless.)

BTW: If you one Program write, that WaitInput really never leave should, because You everything over The Messages regelst (sozusagen Windowsprogrammierung To foot), then can You instead of your Endlosschleife circa WaitInput simply whom yet unkommentierten new commands WAITEND using. How the name andeutet, becomes WAITEND first at End of program leave:
CompileMarkSeparation
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
03/05/08  
 



The Statement is really super,

I wished but sooner hereon allude the even very not possible is. (without WS_CLIPCHILDREN)

likewise was unfortunately to ascertain the one wm_paint-by-subClassProc-intercepting not really meaningfully is there between Waitinput To Waitinput naturally (but too unfortunately) not gesubclasst becomes.

wm_paint as userMessage end in eternal Loop.

my obiges While 1 is therefore in XProfan no tatsächliche Endlosschleife because the WaitInput with not gesetztem Window Style 512 the program exits. (These Endlosschleife meant I means not, sooner The observation in the Taskmanager at testing of first obigen example with Fensterskalierung.)
 
03/05/08  
 



waitEnd in Beta15?
 
03/05/08  
 




RGH
iF
waitEnd in Beta15?


Yes!
 
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
03/05/08  
 




RGH
RGH
iF
waitEnd in Beta15?


Yes!


... though for the time being only Interpreter.
 
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
03/05/08  
 



Jaja, treib me quiet into deliriousness...
 
03/05/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

4.895 Views

Untitledvor 0 min.
Sven Bader08/17/21
Erasmus.Herold05/08/19
Michael W.05/05/16
iF04/13/16
More...

Themeninformationen

this Topic has 2 subscriber:

iF (5x)
RGH (3x)


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