#include "FiveWin.ch"
function Main()
local oDlg, oGet, cTest := Space( 20 )
DEFINE DIALOG oDlg
@ 2, 2 GET oGet VAR cTest SIZE 80, 10 NOBORDER
oGet:bPainted = { || PaintBorder( oGet, oDlg ) }
ACTIVATE DIALOG oDlg CENTERED
return nil
function PaintBorder( oGet, oDlg )
local aPoint1 := { -1, -1 }
local aPoint2 := { oGet:nHeight, oGet:nWidth }
aPoint1 = ClientToScreen( oGet:hWnd, aPoint1 )
aPoint1 = ScreenToClient( oDlg:hWnd, aPoint1 )
aPoint2 = ClientToScreen( oGet:hWnd, aPoint2 )
aPoint2 = ScreenToClient( oDlg:hWnd, aPoint2 )
WndBox( oDlg:GetDC(), aPoint1[ 1 ], aPoint1[ 2 ], aPoint2[ 1 ], aPoint2[ 2 ] )
oDlg:ReleaseDC()
return nil
METHOD Paint() CLASS TComboBox
local aInfo := ::DispBegin()
CallWindowProc( ::nOldProc, ::hWnd, WM_PAINT, ::hDC, 0 )
If( ! Empty( ::bPainted ), Eval( ::bPainted, ::hDC ),)
::DispEnd()
return 1
METHOD Display() INLINE ::BeginPaint(), ::Paint(), ::EndPaint(), 0
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 72 guests