I am having trouble getting my windows updated.
A snippet follows:
CASE %WM_PAINT
hDC = BeginPaint(hWnd, LpPaint)
GetClientRect hWnd, tRect
SetBkMode hDC, %TRANSPARENT
SetTextColor hDC, %black
EndPaint hWnd, LpPaint
FUNCTION = 0
EXIT FUNCTION
IF NEnd>0 THEN EnableMenuItem hMenu,%IDM_NARROW,%MF_ENABLED :_
EnableMenuItem hMenu,%IDM_REMOVE,%MF_ENABLED :_
EnableMenuItem hMenu,%IDM_PRINT,%MF_ENABLED :_
MENU DRAW BAR hMenu : _
CALL invalidaterect (hWnd,BYVAL %NULL,%False) : _
CALL updatewindow (hWnd)
The menubar is redrawn only if I minimize the window and
then restore it, or if I click a button in the window.
A snippet follows:
CASE %WM_PAINT
hDC = BeginPaint(hWnd, LpPaint)
GetClientRect hWnd, tRect
SetBkMode hDC, %TRANSPARENT
SetTextColor hDC, %black
EndPaint hWnd, LpPaint
FUNCTION = 0
EXIT FUNCTION
IF NEnd>0 THEN EnableMenuItem hMenu,%IDM_NARROW,%MF_ENABLED :_
EnableMenuItem hMenu,%IDM_REMOVE,%MF_ENABLED :_
EnableMenuItem hMenu,%IDM_PRINT,%MF_ENABLED :_
MENU DRAW BAR hMenu : _
CALL invalidaterect (hWnd,BYVAL %NULL,%False) : _
CALL updatewindow (hWnd)
The menubar is redrawn only if I minimize the window and
then restore it, or if I click a button in the window.
Comment