English
Opportunities and suggestions

wish: SubClass-procedure self to determine

 

Uwe
''Pascal''
Niemeier
Hi Roland!

the Topic can me not go

i'm it dwelt, komplexere dialogs in Procs auszulagern and I former for each this DLG-Procs a SubClass-Proc laid out.
therefore could I with pub deklarierten variables for Handles the To kontollierenden items works.
after The DLG-Proc leave watts, watts indeed The dazugehörige SubClass-Proc not any more called.

the goes now naturally so not any more, because with profanem SubClassing The pretended Proc indeed with others opportunities used and is then logischerweise undeklarierte variables finds

what I me wish or. desired had:
but not SubClass Handle&,1 one SubClass Handle&,MeineProc or something like in the manner.
For this had so did i on The System-Variables dispense can.

is / was but probably too a question the Aufwandes for you or. the Gewöhnung for me, take I

SeeYou
Pascal
 
03/09/09  
 




RGH
Hi,

as long as The Dialogbezogenen variables only in the part the Codes vorkommen, the with the suitable dialog carryed out becomes, ought to it still no Problems give. In &sWnd find You Yes the lever the Dialogfensters, that whom appeal of SubProc triggered has. this lever ought to one always inquire, if one several dialogs/Window subclassed. (what kind of german! ;) ) These variables should naturally to the first Call of SubClassProc for this dialog/this Window declared his, means to the suitable SubClass-commands.

about (here's The request of &sWnd in SubClassMessage() integrate)
CompileMarkSeparation
SubClassProc

    If SubClassMessage(meinDialog1&, meineMessage1&)

        <...>

    ElseIf SubClassMessage(meinDialog2&, meineMessage2&)

        <...>

    Else

        <...>

    EndIf

CompileMarkSeparation
SubClassProc

    If &sWnd = meinDialog1&

        <...>

    ElseIf &sWnd = meinDialog2&

        <...>

    Else

        <...>

    EndIf

ENDPROC


or quite
CompileMarkSeparation
SubClassProc

    Select &sWnd

        Case meinDialog1&
        <...>
        Case meinDialog2&
        <...>
        Otherwise
        <...>

    EndSelect

ENDPROC


Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
03/09/09  
 




Uwe
''Pascal''
Niemeier
Hi Roland!

Habs not yet ausgetestet, but...


In &sWnd find You Yes the lever the Dialogfensters, that whom appeal of SubProc triggered has. this lever ought to one always inquire, if one several dialogs/Window subclassed.


moreover must still The suitable variables with the Handles global declared his? because these Yes with &sWnd compared go must? and of course jedesmal, if SubClassProc called becomes, alike where or. of whom?

naturally can the somehow hinkriegen; I wished only time on it allude, that it plainer had his can

Ergänzender suggestion1: Perhaps would it long-term possible, whole windows-classes (or. copies of it) To subclassen?

Ergänzender suggestion2: it should still a interne Einsprungadresse for SubClassProc give? an suitable Systemvariable could interestingly his (even if I not yet white for what)

SeeYou
Pascal
 
03/12/09  
 




RGH
Uwe Pascal Niemeier
Hi Roland!
moreover must still The suitable variables with the Handles global declared his? because these Yes with &sWnd compared go must? and of course jedesmal, if SubClassProc called becomes, alike where or. of whom?


this is though correctly..

Uwe Pascal Niemeier
Ergänzender suggestion1: Perhaps would it long-term possible, whole windows-classes (or. copies of it) To subclassen?


the ought to in principle possible his ... must I time something nachforschen ...

Uwe Pascal Niemeier
Ergänzender suggestion2: it should still a interne Einsprungadresse for SubClassProc give? an suitable Systemvariable could interestingly his (even if I not yet white for what)


the would no trouble and can I yet rasch in 11.2 install. though falls me on attempt too no sinnvolle application one ... even if the nothing hot must ... ;)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
03/12/09  
 




Uwe
''Pascal''
Niemeier
Hello Roland!

me
Ergänzender suggestion2: it should still a interne Einsprungadresse for SubClassProc give? an suitable Systemvariable could interestingly his (even if I not yet white for what)


11.2ß
> Systemvariable &SCPROC:
address the SubClassProc, Parameter How windows-procedure)


For this Schonmal thanks!

circa but the Topic zurückzukommen: would be it theoretical possible, these address (z.B. by Set ) To überschreiben with of/ one own by ProcAddr  ermittelten?
These Own Proc would itself - to of my Review - then so behaviour as pretended SubClassProc , only could one even in the ongoing pursued change.

straight with usage vieler gesubclasseder dialogs would the the Übersichtlichkeit very zuträglich (at least in my Programs)


SeeYou
Pascal
 
03/21/09  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.706 Views

Untitledvor 0 min.
H.Brill02/07/19
Jörg Sellmeyer05/16/18
Ernst03/02/15

Themeninformationen

this Topic has 2 subscriber:

Uwe ''Pascal'' Niemeier (3x)
RGH (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie