flat assembler
Message board for the users of flat assembler.
Index
> Windows > HELP: resource |
Author |
|
LocoDelAssembly 13 Sep 2010, 22:05
If you don't process the message you should set EAX to zero, so this would be a correct DialogProc:
Code: proc DialogProc hwnd,msg,wparam,lparam .if [msg] = WM_INITDIALOG mov eax, TRUE .elseif [msg] = WM_COMMAND .if [wparam] = ID_CLOWS invoke SendMessage,[hwnd],WM_CLOSE,0,0 .endif mov eax, TRUE .elseif [msg] = WM_CLOSE invoke EndDialog,[hwnd],0 mov eax, TRUE .else mov eax, FALSE .endif ret endp If you meant that your problem is that your dialog is looking like old Windows 2000 style then you need to do just one more thing: http://board.flatassembler.net/topic.php?t=3256 (read the entire thread) (Notice that the corrections I've made earlier are still needed because here your program was unusable before the fixes) |
|||
13 Sep 2010, 22:05 |
|
tutenhamon 14 Sep 2010, 14:46
Yes procedure DialogProc isn't done
I know about manifest. Me problem is: no border in application and doubled controls in window |
|||
14 Sep 2010, 14:46 |
|
baldr 14 Sep 2010, 17:36
tutenhamon,
That's quite strange. On my XP SP2 dialog displays without duplicates (still looking weird, though: only child controls are drawn; Loco is right about DlgProc return value). Can you attach resulting .Exe? |
|||
14 Sep 2010, 17:36 |
|
LocoDelAssembly 14 Sep 2010, 17:38
tutenhamon, have you at least tried the DialogProc I've provided? It resolved all the visualization issues here...
|
|||
14 Sep 2010, 17:38 |
|
tutenhamon 14 Sep 2010, 18:49
LocoDelAssembly yes, you are right (I was not understand you )
I not expected of problem in procedure. if I put xor eax,eax at end procedure problem was solved. |
|||
14 Sep 2010, 18:49 |
|
shoorick 16 Sep 2010, 12:19
Also you may wish to add a string at the begin of the source (after "win32a.inc"):
Code:
include 'encoding\win1250.inc'
to show polish characters properly |
|||
16 Sep 2010, 12:19 |
|
tutenhamon 17 Sep 2010, 16:38
shoorick very very big thanks
|
|||
17 Sep 2010, 16:38 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.