flat assembler
Message board for the users of flat assembler.
Index
> Windows > ListView & Tray & Update ... problem |
Author |
|
revolution 12 Sep 2008, 16:40
Maybe this thread can help. Is is not quite the same problem but the solution might work for you also.
|
|||
12 Sep 2008, 16:40 |
|
dacid 12 Sep 2008, 16:45
SetFocus? doesnt work...
|
|||
12 Sep 2008, 16:45 |
|
revolution 12 Sep 2008, 16:49
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.
|
|||
12 Sep 2008, 16:49 |
|
dacid 12 Sep 2008, 17:40
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) |
|||
12 Sep 2008, 17:40 |
|
revolution 12 Sep 2008, 23:39
Have you tried InvalidateRect?
|
|||
12 Sep 2008, 23:39 |
|
dacid 13 Sep 2008, 08:47
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 |
|||
13 Sep 2008, 08:47 |
|
revolution 13 Sep 2008, 08:56
Just insert:
Code: invoke InvalidateRect,hWnd,NULL,TRUE Code: invoke InvalidateRect,hWnd,0,-1 |
|||
13 Sep 2008, 08:56 |
|
dacid 13 Sep 2008, 09:11
it works! thx a lot
|
|||
13 Sep 2008, 09:11 |
|
LocoDelAssembly 13 Sep 2008, 11:28
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. |
|||
13 Sep 2008, 11:28 |
|
revolution 13 Sep 2008, 11:38
I always use:
Code: FALSE=0 TRUE = not FALSE |
|||
13 Sep 2008, 11:38 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.