English
Source / code snippets

Button Deaktivieren Dialogen Closing

 

CompileMarkSeparation
Def @AHSetClassLong(3) !"User32","SetClassLongA"
Def @AHCreateSolidBrush(1) !"GDI32","CreateSolidBrush"
DEF @AHGetClassLong(2) !"USER32","GetClassLongA"
Settruecolor 1
Declare Dateiname#,Class_Style&,Dialog1&,Dialog2&
Windowstyle 31
Windowtitle "Schließen Button in Dialogen deaktivieren"
Window 0,0-640,440
LET Dialog1&=@CreateDialog(%HWND,"Erster Dialog",30,30,300,300)
LET Class_Style&=AHGetClassLong(Dialog1&,$FFFFFFE6)
LET Class_Style&=Class_Style& | $200
Print @AHSetClassLong(Dialog1&,$FFFFFFE6,Class_Style&)
@SetFocus(%HWND)
@SETFOCUS(Dialog1&)
@CREATETEXT(Dialog1&,"Dieser Dialog wird zuerst mit aktivem Schließen-Button erzeugt, der nach dem Erzeugen abgeschaltet wird!",10,10,280,280)
LET Dialog2&=@CreateDialog(%HWND,"Zweiter Dialog",100,30,300,300)
@CREATETEXT(Dialog2&,"Der Schließen-Button jedes weiteren Dialoges ist von vornherein deaktiviert!",10,10,280,280)

While 0=0

    Waitinput

Wend

 
11/20/05  
 




Rolf
Koch
... or integrally take away with only of/ one row:
CompileMarkSeparation
SETSTYLE DLG&,SUB(GETSTYLE(DLG&),$80000)
>
 
11/20/05  
 



means code affects on any dialogs from...
 
11/20/05  
 




Dietmar
Horn
... and damits too XP without Flackern works:
CompileMarkSeparation
declare d0&,exit&
cls
d0& = CREATE("Dialog",%HWnd,"Dialogfenster ohne Schließen-Button",%MaxX + 10,50,300,200)
SetStyle d0&,Sub(GetStyle(d0&),$80000)
SetFocus(%HWnd)
SetFocus(d0&)
exit& = CREATE("Button",d0&,"Beenden",5,5,100,25)
SetWindowPos d0& = 10,50 - 300,200;0
WaitInput
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
11/20/05  
 



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

4.703 Views

Untitledvor 0 min.
Uwe Lang03/04/21
Joerg06/24/16
RICOSCH11/23/14
Walter Meidl05/02/13
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