flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
Maybe this thread can help. Is is not quite the same problem but the solution might work for you also.
|
|||
![]() |
|
dacid
SetFocus? doesnt work...
|
|||
![]() |
|
revolution
Perhaps you can make some minimal code that exhibits the problem and post it here. Then others may be able to help a bit more.
|
|||
![]() |
|
dacid
project.rc
CONTROL "",5000,"SysListView32",WS_CHILD|WS_VISIBLE|WS_BORDER|WS_TABSTOP|LVS_ALIGNLEFT|LVS_REPORT,5,14,339,105 project.asm goes to tray: ... ... .ELSEIF uMsg == WM_SIZE .IF wParam == SIZE_MINIMIZED invoke ShowWindow,hWnd,NULL ; SW_HIDE invoke UpdateWindow,hWnd .ENDIF ... back from tray: ... .ELSEIF uMsg==WM_SHELLNOTIFY .IF wParam==IDI_TRAY .IF lParam==WM_RBUTTONDOWN invoke GetCursorPos,ADDR pt invoke SetForegroundWindow,hWnd invoke TrackPopupMenu,hPopupMenu,TPM_RIGHTALIGN,pt.x,pt.y,NULL,hWnd,NULL .ELSEIF lParam==WM_LBUTTONDBLCLK invoke ShowWindow,hWnd,SW_RESTORE invoke SetForegroundWindow,hWnd invoke UpdateWindow,hWnd .ENDIF .ENDIF .... but the listview doesnt "refresh" at all (see image) |
|||
![]() |
|
revolution
Have you tried InvalidateRect?
|
|||
![]() |
|
dacid
no.. but its strange why entire window (listview included) is not refreshing correctly with this code.
i will search the forum for an InvalidateRect example... thx |
|||
![]() |
|
revolution
Just insert:
Code: invoke InvalidateRect,hWnd,NULL,TRUE Code: invoke InvalidateRect,hWnd,0,-1 |
|||
![]() |
|
dacid
it works! thx a lot
|
|||
![]() |
|
LocoDelAssembly
Quote:
Code: ; General constants NULL = 0 TRUE = 1 ; <<<< POSITIVE FALSE = 0 Perhaps there is no API that checks for 1 exactly but I would stick to that value just to be safe. |
|||
![]() |
|
revolution
I always use:
Code: FALSE=0 TRUE = not FALSE |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.