DLLs | | | | Andreas Miethe
| Hello together,
I had time again pleasure on the Appearance of my XProfan-Fensters To screwing. Herausgekommen is thereby a small DLL, The the for me manage can. I lann so welt and Titelleiste change. see Image.
Download
I have The Dll of course extensively tested, ex if the an or others a little play would like, then go ahead. Perhaps there Yes yet suggestions moreover.
the Test-Program is for latest Freeware-Full Version XProfan8 written.
Please absolutely The PDF-File reading. |
| | | Gruss Andreas ________ ________ ________ ________ _ Profan 3.3 - XProfanX2 Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher Homepage : [...] | 01/06/10 ▲ |
| |
| | Rolf Koch | means by me under Win7 works it correct. Beauty thing, straight for Gestaltungsfreaks so How I of/ one be. in the Testprogramm are change 3 and change 4 same? there happens nothing. |
| | | | |
| | Andreas Miethe
| Rolf Koch, Beitrag=55759, Zeitpunkt=06.01.2010
means by me under Win7 works it correct. Beauty thing, straight for Gestaltungsfreaks so How I of/ one be. in the Testprogramm are change 3 and change 4 same? there happens nothing.
really should with 4 the two Systembuttons vanish, The have I but none displayed, habs simply forget at paraphrase to XProfan8. |
| | | Gruss Andreas ________ ________ ________ ________ _ Profan 3.3 - XProfanX2 Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher Homepage : [...] | 01/06/10 ▲ |
| |
| | Christian Schneider | sees really nice from and the Testprogramm runs by me without Problems.
to that yourself play I will unfortunately to end january not come (habs but definitiv on ToDo). |
| | | | |
| | | something umständlich in the management, but super thing.
Irgendwas but... (Vista)
means The Popups of Menu are To deeply and with whom Buttons missing supra initially a Pixelreihe. |
| | | | |
| | Andreas Miethe
| iF, Beitrag=55767, Zeitpunkt=06.01.2010
means The Popups of Menu are To deeply and with whom Buttons missing supra initially a Pixelreihe.
Yes, is at paraphrase to XProfan8 happens. I had already utterly forget How is a Toolbar by Api anlegt.
here one other example. so power to the Toolbarmenü transparent. CompileMarkSeparation $H windows.ph
$H messages.ph
$I XFrameDll.Inc
Struct TBBUTTON = iBitmap&,idCommand&,fsState#(1),fsStyle#(1),bReserved#(2),dwData&,iString&
Struct Rect = left&,top&,right&,bottom&
Declare Ende&,Dll&
Declare TB_Buttonstrings$,TB&,TBS&
Declare Rebar&,RebarBandInfo#
Dll& = UseDll("XFrame.dll")
Windowstyle 20
windowtitle "OwnerDraw-Frame"
cls $FFFFD7
Usermessages ~wm_close
UseIcon "Eis"
Ende& = 0
#################
DLL vorbereiten
#################
SetButtonIndent(2)
SetTextIndent(4)
SetProgIcon(0)
SetOnTop(%hwnd,1)
SetButtons(0,0)
AdjustWindow(80,12,18,$FFFF)
SetOnlycaption(0)
SetAddImage(0)
Var T$ = "durchsichtiges Menü mit Rebarcontrol"
SetAddText(Addr(T$),Create("FONT","ARIAL",24,0,1,0,0),$FFFF,~DT_RIGHT)
SetButtonImages(Create("hPic",-1,GetDir$("@")+"\Pics\Allbuttons6.bmp"))
SetBackGroundImage(Create("hPic",-1,GetDir$("@")+"\Pics\BackGround3.bmp"))
SetLogoImage(Create("hPic",-1,GetDir$("@")+"\Pics\xprofande.bmp"),~DT_LEFT)
#################
#################
Dll initialisieren
#################
Init(%hwnd)
UpdateFrame(%hwnd)
#################
Menu aus Toolbar
#################
TB_ButtonStrings$ = "DateizBerarbeitenzHilfezz"
TB& = Create("Toolbar",%hwnd,-1,-1,-1,-1,1)
Var MenuFont& = Create("FONT","Arial",18,0,0,0,0)
SendMessage(TB&,~WM_SETFONT,MenuFont&,1)
SendMessage(tb&,$400+28,0,Addr(TB_ButtonStrings$))
tbs& = SendMessage(tb&,$400+57,0,0)Style holen
tbs& = tbs& | $1000 | $800 | $100 | $10 Style ändern
SendMessage(TB&,($400+56),0,tbs&)Style setzen
SendMessage(TB&,($400+32),0,Makelong(0,0))Icon-Grösse = 0,0
Buttonstil setzen, kein Icon,Stil
Declare TBB#
Dim TBB#,TBBUTTON
TBB#.iBitmap& = -1
Byte TBB#,8 = 4 , $800 | $40 | $10
Button 1 , CommandID , Text-Index
TBB#.idCommand& = -3000
TBB#.iString& = 0
SendMessage(tb&,($400+21),-1,TBB#)
Button 2 , CommandID , Text-Index
TBB#.idCommand& = -3001
TBB#.iString& = 1
SendMessage(tb&,($400+21),-1,TBB#)
Button 3 , CommandID , Text-Index
TBB#.idCommand& = -3002
TBB#.iString& = 2
SendMessage(tb&,($400+21),-1,TBB#)
Dispose TBB#
#################
########################
ReBar-Control anlegen
########################
ReBar& = Control("ReBarWindow32","",$50000040,0,0,0,0,%Hwnd,2000,%hinstance)
Set("Errorlevel",-1)
External("UxTheme.dll","SetWindowTheme",ReBar&,0)
Set("Errorlevel",0)
Dim RebarBandInfo#,80
Long RebarBandInfo#,0=80 UINT cbSize
Long RebarBandInfo#,4=$000008B3UINT fMask;
Long RebarBandInfo#,8=$00000100UINT fStyle;
Long RebarBandInfo#,32=TB& HWND hwndChild;
Var rr# = New(Rect)
Sendmessage(TB&,$041D,1,rr#)Buttonhöhe holen
Var h% = rr#.Bottom&Buttonhoehe
Dispose rr#
Long RebarBandInfo#,40=h% UINT cyMinChild;
Var BackPic& = Create("hPic",-1,GetDir$("@")+"\Pics\BackGround3.bmp")
Long RebarBandInfo#,48=BackPic&hBitmap hbmBack
sendmessage(TB&,$0438,0,$5000896D)Toolbarstyle setzen
Sendmessage (ReBar&,$0401,-1,RebarBandInfo#)Toolbar in ReBar
SetWindowPos ReBar& = 0,0- width(%hwnd),0
########################
SetToolbarAutosize(TB&)
Set("MenuBackCol",$FFFFFF)
Set("MenuBorderCol",$FFFFFF)
SubClass %HWnd, 1
Var r1# = New(Rect)
whilenot ende&
Waitinput
If %Umessage = ~wm_close
exit()
Dispose r1#
DeleteObject BackPic&
DeleteObject MenuFont&
FreeDll Dll&
Ende& = 1
Endif
If MenuItem(3000)
CreateMenu
AppendMenu 100,"&Laden",0
AppendMenu 101,"&Speichern",0
AppendMenu 102,"Speichern &als",0
Rechteck des Buttons holen
SendMessage(tb&,$400+29,0,r1#)
TrackMenu r1#.left&,Height(TB&)
Elseif Menuitem(3001)
CreateMenu
AppendMenu 100,"&Kopieren",0
AppendMenu 101,"&Ausschneiden",0
AppendMenu 102,"&Einfügen",0
SendMessage(tb&,$400+29,1,r1#)
TrackMenu r1#.left&,Height(TB&)
Elseif Menuitem(3002)
CreateMenu
AppendMenu 100,"&Hilfe",0
SendMessage(tb&,$400+29,2,r1#)
TrackMenu r1#.left&,Height(TB&)
Case MenuItem(100) : Messagebox("Hilfe gibt es hier nicht","...",0)
Endif
EndWhile
SubClassProc
If SubClassMessage(%hWnd, ~wm_size)
SetWindowPos ReBar& = 0,0- width(%hwnd),0
Set("WinProc", 0)
class=s4 href='./../../Function-References/XProfan/endif/'>EndIf
ENDPROC
|
| | | Gruss Andreas ________ ________ ________ ________ _ Profan 3.3 - XProfanX2 Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher Homepage : [...] | 01/06/10 ▲ |
| |
| | Stefan M. Caillet | Hello Andreas, Real tolles part. by me becomes the window, if I it maximiere circa some Bildpunkte To far supra displayed, so the Icon in the Titelleiste supra cut becomes: likewise go The Grossbuchstaben the Fenstertitels To to oberkannte the lower case cut. too lying it circa some Pixel zuweit left. have this effect in the example "TEST" under Win7/64bit with the Original-dissolution 1386 x 768 the TFT erlebt. there are no Textvergrösserungen o.ä. tuned can You there yet what make? Thank you. greeting Stefan. |
| | | Ich habe grosses Glück, weil ich Mitmenschen helfen darf. Entwicklungsumgebung: XProfan11 , Win XP Pro 32Bit , Win XP Home ,Win7 HomePremium 64Bit PC: P4/3GHz , 2GB RAM , 1700GB HD Laptop: Intel Core 2 Duo /2,2GHz , 4GB RAM , 500GB HD | 01/07/10 ▲ |
| |
| | Andreas Miethe
| | | | Gruss Andreas ________ ________ ________ ________ _ Profan 3.3 - XProfanX2 Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher Homepage : [...] | 01/07/10 ▲ |
| |
| | Stefan M. Caillet | Hello Andreas, thanks. utterly perfect! greeting Stefan |
| | | Ich habe grosses Glück, weil ich Mitmenschen helfen darf. Entwicklungsumgebung: XProfan11 , Win XP Pro 32Bit , Win XP Home ,Win7 HomePremium 64Bit PC: P4/3GHz , 2GB RAM , 1700GB HD Laptop: Intel Core 2 Duo /2,2GHz , 4GB RAM , 500GB HD | 01/07/10 ▲ |
| |
|
Zur DLLTopic-Options | 10.282 Views |
Themeninformationenthis Topic has 5 subscriber: |