020
05.05.2005, 00:02 Uhr
~CDW
Gast
|
Zitat: |
Das andere sieht für mich falsch aus. Die Anwendung muss doch FALSE zurückliefern, wenn alles in Ordnung ist, oder?
|
Bei Dir wird immer ein FALSE zurückgegeben... das mit dem falsch glaube ich übrigens nicht
Code: |
.IF uMsg==WM_INITDIALOG .ELSEIF uMsg==WM_CLOSE invoke SendMessage,hWnd,WM_COMMAND,ID_AUFGABE,0 .ELSEIF uMsg==WM_COMMAND mov eax,wParam mov edx,eax shr edx,16 .if dx==BN_CLICKED .IF ax==ID_TEST invoke TestIt,hWnd .ELSEIF ax==ID_AUFGABE invoke EndDialog, hWnd,NULL .ENDIF .ENDIF .ELSE mov eax,FALSE ret .ENDIF mov eax,TRUE ret
|
so sieht das im "Ganzen" aus. Warum TRUE? verweise nochmal auf Icz: http://spiff.tripnet.se/~iczelion/tut10.html
Zitat: |
The dialog box procedure looks like a window procedure except that it doesn't receive WM_CREATE message. The first message it receives is WM_INITDIALOG. Normally you can put the initialization code here. Note that you must return the value TRUE in eax if you process the message.
|
das sagt die MSDN dazu (DialogProc):
Zitat: |
Except in response to the WM_INITDIALOG message, the dialog box procedure should return nonzero if it processes the message, and zero if it does not. In response to a WM_INITDIALOG message, the dialog box procedure should return zero if it calls the SetFocus function to set the focus to one of the controls in the dialog box. Otherwise, it should return nonzero, in which case the system sets the focus to the first control in the dialog box that can be given the focus.
|
übrigens habe ich beim ICZ Tut (derselbe link) auch die Stelle mit dem DestroyWindow gefunden:
Zitat: |
When you want to destroy the dialog box, the only way is to call EndDialog function. Do not try DestroyWindow! EndDialog doesn't destroy the dialog box immediately. It only sets a flag for the internal dialog box manager and continues to execute the next instructions.
|
Dachte mir nämlich schon dass es hier was faul ist Dieser Post wurde am 05.05.2005 um 09:25 Uhr von FloSoft editiert. |