elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   Flyff Private Server (https://www.elitepvpers.com/forum/flyff-private-server/)
-   -   [Source-Frage]Interface Text ändern. (https://www.elitepvpers.com/forum/flyff-private-server/1484542-source-frage-interface-text-ndern.html)

Yakuzai. 10/12/2011 14:54

[Source-Frage]Interface Text ändern.
 
Hey, hab mal eine kleine Frage, ich habe mir einen Skilltree gebastelt und möchte jetzt, dass wenn man einen Skill auf dem Tree auswählt, dass sein Name an einen Text gesendet wird (WIDC_STATIC_12).
Das habe ich jetzt mal so gemacht :
Code:

        CWndStatic* pStatic = NULL;
                pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC12 );
                pStatic->SetText( "TestText.." );

Funktioniert aber nicht.
Das ganze habe ich in die WndSkillCtrl.cpp geschrieben <- Da weiß ich auch nicht, ob das so richtig war.
Achja : Als Basis benutze ich den alten (nicht v16) Skilltree.
Ich hoffe auf eure Hilfe ^^
So Far, Yakuzai.

©ross 10/12/2011 15:22

Quote:

Originally Posted by Yakuzai. (Post 13318381)
...(WIDC_STATIC_12).

im codeblock:
Code:

                GetDlgItem( [B]WIDC_STATIC12[/B] );
...

?
ansonsten mal schauen wie es andere fenster tun, genau weis ich es nicht

Yakuzai. 10/12/2011 15:50

Das ist auch ein Problem, ich weiß gerade kein Fenster, dass das tut xD

Pumbaaa 10/12/2011 15:50

SetTitle nicht SetText

Yakuzai. 10/12/2011 15:58

Hmm, ich hab jetzt mal das hier:
Code:

void CWndSkillCtrl::OnInitialUpdate()
{
        CWndStatic* pStatic = NULL;
                pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC12 );
                pStatic->SetTitle( "TestText" );

gemacht, wie man sehen kann in die OnInitialUpdate Funktion von WndSkillCrtl.cpp, jetzt müsste er doch eigentlich den Text auf TestText setzen oder nicht ?
Tut er nähmlich nicht >.<

Pumbaaa 10/12/2011 16:10

Machs in OnDraw, nicht in OnInitialUpdate.

Yakuzai. 10/12/2011 16:23

Habs jetzt in die OnDraw reingetan und es passiert immernoch garnichts :/
Wann wird die OnDraw Funktion denn aufgerufen ?

Pumbaaa 10/12/2011 16:32

Probiers doch aus via Error(...)

Yakuzai. 10/12/2011 16:38

Kenne die Funktion Error() nicht xD
Mach ausser Flyff eigentlich nichts mit C++


All times are GMT +2. The time now is 19:21.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.