| |
|
|
KHR | Hello together,
I have a morsel of with the Lupenfunktion herumgespielt.
Klappt too everything so well CompileMarkSeparationLupen_fenster& = @Create(Window,%desktop,lupe,20,20,200,120)
Lupe_rgn& = RoundRectRgn(0,0,200,120,18,18)
SetWindowRgn(Lupen_fenster&, Lupe_rgn& , 1)re> what could I do, circa the Region a welt To give? so that one tappt im dunkeln too sees, if white from weißsem background pictured becomes |
|
|
| Gruß Karl-Heinz WIN XP home/Pro / XPROFAN 11 / P2CPP ATMEL + BASCOM Fan | 06/01/09 ▲ |
|
|
|
|
Frank Abbing | For this Gibts ne API, The is FrameRgn(). |
|
|
| |
|
|
|
KHR | thanks Frank
I Have the time so versucht; CompileMarkSeparationDef SetWindowRgn(3) !USER32,SetWindowRgn
def RoundRectRgn(6) !GDI32,CreateRoundRectRgn
def RgnBorder(5) !GDI32,FrameRgn
Def CreateSolidBrush(1) ! GDI32,CreateSolidBrush
windowstyle 1136
Lupen_fenster& = @Create(Window,%desktop,lupe,20,20,200,120)
Lupe_rgn& = RoundRectRgn(0,0,200,120,18,18)
region& = SetWindowRgn(Lupen_fenster&, Lupe_rgn& , 1)
solidbrush& = CreateSolidBrush(@rgb(1,1,1))
border& = RgnBorder(Lupen_fenster&, Lupe_rgn& , solidbrush& ,3 ,3 on>
variables are declared, Window and Lupe functions, there's no Error Message
but the window/The Region has still none welt.
what mach I wrong?? |
|
|
| Gruß Karl-Heinz WIN XP home/Pro / XPROFAN 11 / P2CPP ATMEL + BASCOM Fan | 06/01/09 ▲ |
|
|
|
|
Dieter Zornow | |
|
| Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2 | 06/01/09 ▲ |
|
|
|
|
Frank Abbing | The first Parameter of FrameRgn() must well the HDC your Fensters his, not the Fensterhandle. Have The function yourself too not yet using. |
|
|
| |
|
|
|
Dieter Zornow | FrameRgn(hdc&,rgn&,sb&,x%,y%)
hdc the Fensters, lever the Region, lever Brush, rahmenbreite, rahmenhöhe
the are The Parameter
Greeting
Dieter |
|
|
| Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2 | 06/01/09 ▲ |
|
|
|