English
Source / code snippets

dialog Window Fixieren

 
Matthias Arlt (15.10.2018)
It's all right too plainer, but only, if the System Menu not complete removes becomes...
var hDlg& = Create("Dialog",%hWnd,"Test",100,100,400,300)
var hMenu& = external("USER32","GetSystemMenu",hDlg&,0)
external("USER32","DeleteMenu",hMenu&,$F010,0)

while 1

    waitInput
    case (%key = 2) : break

wend


Greeting Matthias
 
10/19/18  
 




Erasmus.Herold
could we this Window to motivate, right supra
no "X" to that Closing view.

i want a Button close, accordingly too
no "%key = 2 offer?

have over Windowstyle no Solution found,
Perhaps too wrong applied?!

Please a short Solution. Thank you.
 
11/13/18  
 




Matthias
Arlt
a 'einfachen' lane to that Remove the close-Buttons with otherwise Yes notwendigem Erhalt the Systemmenüs there m.W. not...
you mußt indeed '%key' not inquire, if you not want. then hold through Button:
var hDlg& = Create("Dialog",%hWnd,"Test",100,100,400,300)
var hMenu& = external("USER32","GetSystemMenu",hDlg&,0)
var hBtn& = create("BUTTON",hDlg&,"Fertig",10,10,60,25)
external("USER32","DeleteMenu",hMenu&,$F010,0)

while 1

    waitInput
    'case (%key = 2) : break
    case clicked(hBtn&) : break

wend

 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
11/13/18  
 




Erasmus.Herold
thanks for response.

me went But around the Ansatz, the "X" not view.
The User believes then, there could it the window close.
should it but not.

therefore would I the "X" right supra in the Systemleiste
gladly Hide.
 
11/14/18  
 




Peter
Max
Müller
Graut though only from. but Perhaps.....
Def GetSystemMenu(2) !"USER32","GetSystemMenu"
' Def DeleteMenu(3) !"USER32","DeleteMenu"
Def EnableMenuItem(3) !"USER32","EnableMenuItem"
'Def DisableClose(0) If(DeleteMenu(GetSystemMenu(GetActiveWindow(),0),6,$400),\
'SendMessage(GetActiveWindow(),$86,1,0),0)
' example
Cls
EnableMenuitem(GetSystemMenu(GetActiveWindow(),0),$F060,1)
' DisableClose()
WaitInput
 
XProfan X3
XProfan X3, X4ß, Win 10.1
11/14/18  
 




Erasmus.Herold
Thank you. this is lovely.
 
11/15/18  
 



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

Untitledvor 0 min.
Peter Max Müller01/21/24
H.Brill06/06/21
Uwe03/10/20
Stefan8101/01/20
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