English
Source / code snippets

Size Mainwindow inside Center

 

CompileMarkSeparation
CompileMarkSeparation
 
11/10/06  
 



Flickerfrei Centered & on korrekte inside Maße brought.
CompileMarkSeparation
 
02/08/07  
 



Have whom o.g. View source only using circa the Sourceanzeige The } {-Einrückung beizubringen. nevertheless, The procedure functions integrally inspired and becomes often of me using.
 
02/08/07  
 



here for Nichtxpsefreaks:
CompileMarkSeparation
DECLARE __cf1&
Def __cf1(2) !"KERNEL32","GetProcAddress"
Def __cf2(1) !"KERNEL32","GetModuleHandleA"
__cf1&=__cf1(__cf2("user32.dll"),"GetSysColor")
WINDOWSTYLE (512 | 8 | 16 | 2 )
WINDOWTITLE ""
HWND.CREATECENTERHWND(320,200,call(__cf1&,15))
WAITINPUT
end

proc HWND.CREATECENTERHWND

    PARAMETERS _WIDTH&,_HEIGHT&,_COLOR&
    WINDOW %MAXX,%MAXY - 0,0
    CLS _COLOR&
    HWND.SETHWNDINNERSIZE _WIDTH&,_HEIGHT&
    SETWINDOWPOS %HWND=(%MAXX/2-_WIDTH&/2),(%MAXY/2-_HEIGHT&/2) - (%WINRIGHT-%WINLEFT),(%WINBOTTOM-%WINTOP);0
    RETURN %HWND

endproc

proc HWND.SETHWNDINNERSIZE

    PARAMETERS X&,Y&
    SETWINDOWPOS %HWND=%WINLEFT,%WINTOP - ((%WINRIGHT-%WINLEFT)-(WIDTH(%HWND)-X&)),((%WINBOTTOM-%WINTOP)-(HEIGHT(%HWND)-Y&));0

endproc

 
02/08/07  
 



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

5.571 Views

Untitledvor 0 min.
Gast.081508/28/24
Micha1233407/08/18
Michael W.06/07/18
Manfred Barei05/31/18
More...

Themeninformationen

this Topic has 1 subscriber:

iF (4x)


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