Herzlich Willkommen, lieber Gast!
  Sie befinden sich hier:

  Forum » C / C++ (WinAPI, Konsole) » Manifest erzeugt Fehler

Forum | Hilfe | Team | Links | Impressum | > Suche < | Mitglieder | Registrieren | Einloggen
  Quicklinks: MSDN-Online || STL || clib Reference Grundlagen || Literatur || E-Books || Zubehör || > F.A.Q. < || Downloads   

Autor Thread - Seiten: [ 1 ] [ 2 ] > 3 <
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.
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
021
05.05.2005, 15:55 Uhr
A-l-e-x



@CDW
hab jetzt abgeändert. Danke.

Der Fehler liegt wahrscheinlich bei dem laden eines Bildes aus Resource. Kennt jemand ein anderes Tut bzw. ein Beispiel wo man ein Bild aus der Ressource läd? Eins von IPicture wär nett. Will nämlich eine eigene Funktion schreiben.

mfg A-l-e-x

Dieser Post wurde am 05.05.2005 um 15:59 Uhr von A-l-e-x editiert.
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
Seiten: [ 1 ] [ 2 ] > 3 <     [ C / C++ (WinAPI, Konsole) ]  


ThWBoard 2.73 FloSoft-Edition
© by Paul Baecher & Felix Gonschorek (www.thwboard.de)

Anpassungen des Forums
© by Flo-Soft (www.flo-soft.de)

Sie sind Besucher: