Advertisement
Guest User

Untitled

a guest
Jun 6th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     Case WM_PAINT
  2.         Dim as PAINTSTRUCT ps
  3.         for iT as integer = wcGridStart to wcGridEnd
  4.             if (iMap(iT-wcGridStart).flags AND MF_ISDOOR) then
  5.                 var hDC = BeginPaint(CTL(iT), @ps)
  6.                 'SetBkMode(hDC, TRANSPARENT) ' Draw text with transparent background
  7.                
  8.                 Dim as string sOut = "D:"+Str(iMap(iT-wcGridStart).bExData2)
  9.                 DrawText(hDC, StrPtr(sOut), Len(sOut), _
  10.                          @type<RECT>(0, 0, 32, 32), DT_EDITCONTROL OR DT_WORDBREAK)
  11.                
  12.                 EndPaint(CTL(iT), @ps)
  13.             end if
  14.         next iT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement