[Need Help]Partyfinder

09/22/2012 23:46 Jopsi332#16
genauer?
09/22/2012 23:49 DerJumbo#17
void CWndPartyFinder::OnInitialUpdate()
{
if(g_pPlayer->GetWorld()->GetID() == 202)
{
destroy();
}
{
CWndNeuz::OnInitialUpdate();
// ¿©±â¿¡ ÄÚµùÇϼ¼¿ä
RefreshItemList();

//CWndButton* pWndButton1 = (CWndButton*)GetDlgItem(WIDC_BUTTON1);
//CWndButton* pWndButton2 = (CWndButton*)GetDlgItem(WIDC_BUTTON2);
//pWndButton1->EnableWindow(FALSE);
//pWndButton2->EnableWindow(FALSE);

//ListBox
CSize size = g_Neuz.m_2DRender.m_pFont->GetTextExtent( "123" );

if(size.cy+2 > 16)
{
CRect rect;
LPWNDCTRL lpWndCtrl;

CWndListBox* pWndList = (CWndListBox*)GetDlgItem( WIDC_LISTBOX1 );
lpWndCtrl = GetWndCtrl( WIDC_LISTBOX1 );
rect = lpWndCtrl->rect;
rect.bottom += ((size.cy+2)*10) - (rect.bottom-rect.top) + 4;
//ÆùÆ® Å©±â Â÷ÀÌ ¶§¹®¿¡ ¸®½ºÆ®¹Ú½º Å©±â ´ÃÀÓ
pWndList->SetWndRect(rect);

//⠹и®´Â °æ¿ì ¾Æ·¡µµ Å©±â Á¶Á¤
CRect rectStatic, recText;
CWndStatic* pWndStatic = (CWndStatic*)GetDlgItem( WIDC_STATIC1 );
lpWndCtrl = GetWndCtrl( WIDC_STATIC1 );
rectStatic = lpWndCtrl->rect;
pWndStatic->Move(rectStatic.left, rect.bottom + 10);

CWndText* pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 );
lpWndCtrl = GetWndCtrl( WIDC_TEXT1 );
recText = lpWndCtrl->rect;
recText.top = rect.bottom + rectStatic.Height() + 18;
pWndText->SetWndRect(recText, TRUE);
}

// À©µµ¸¦ Áß¾ÓÀ¸·Î ¿Å±â´Â ºÎºÐ.
CRect rectRoot = m_pWndRoot->GetLayoutRect();
CRect rectWindow = GetWindowRect();
CPoint point( rectRoot.right - rectWindow.Width(), 110 );
Move( point );
MoveParentCenter();
}
09/22/2012 23:51 Jopsi332#18
Code:
void CWndPartyFinder::OnInitialUpdate()
{


CWndNeuz::OnInitialUpdate();
if(g_pPlayer->GetWorld()->GetID() == 202)
{
destroy();
}
// ¿©±â¿¡ ÄÚµùÇϼ¼¿ä
RefreshItemList();

//CWndButton* pWndButton1 = (CWndButton*)GetDlgItem(WIDC_BUTTON1);
//CWndButton* pWndButton2 = (CWndButton*)GetDlgItem(WIDC_BUTTON2);
//pWndButton1->EnableWindow(FALSE);
//pWndButton2->EnableWindow(FALSE);

//ListBox
CSize size = g_Neuz.m_2DRender.m_pFont->GetTextExtent( "123" );

if(size.cy+2 > 16)
{
CRect rect;
LPWNDCTRL lpWndCtrl;

CWndListBox* pWndList = (CWndListBox*)GetDlgItem( WIDC_LISTBOX1 );
lpWndCtrl = GetWndCtrl( WIDC_LISTBOX1 );
rect = lpWndCtrl->rect;
rect.bottom += ((size.cy+2)*10) - (rect.bottom-rect.top) + 4;
//ÆùÆ® Å©±â Â÷ÀÌ ¶§¹®¿¡ ¸®½ºÆ®¹Ú½º Å©±â ´ÃÀÓ
pWndList->SetWndRect(rect);

//⠹и®´Â °æ¿ì ¾Æ·¡µµ Å©±â Á¶Á¤
CRect rectStatic, recText;
CWndStatic* pWndStatic = (CWndStatic*)GetDlgItem( WIDC_STATIC1 );
lpWndCtrl = GetWndCtrl( WIDC_STATIC1 );
rectStatic = lpWndCtrl->rect;
pWndStatic->Move(rectStatic.left, rect.bottom + 10);

CWndText* pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 );
lpWndCtrl = GetWndCtrl( WIDC_TEXT1 );
recText = lpWndCtrl->rect;
recText.top = rect.bottom + rectStatic.Height() + 18;
pWndText->SetWndRect(recText, TRUE);
}

// À©µµ¸¦ Áß¾ÓÀ¸·Î ¿Å±â´Â ºÎºÐ.
CRect rectRoot = m_pWndRoot->GetLayoutRect();
CRect rectWindow = GetWindowRect();
CPoint point( rectRoot.right - rectWindow.Width(), 110 );
Move( point );
MoveParentCenter();
}
09/22/2012 23:57 DerJumbo#19
C:\Users\Eric\Desktop\Source\Program\_Interface\Wn dPartyFinder.cpp(205): error C3861: 'destroy': identifier not found, even with argument-dependent lookup
09/23/2012 00:01 Jopsi332#20
Destroy()
09/23/2012 00:08 DerJumbo#21
jetzt bekomme ich 2 errors:

PHP Code:
C:\Users\Eric\Desktop\Source\Program\_Interface\WndPartyFinder.cpp(208): error C2143syntax error missing ';' before '}' 
PHP Code:
C:\Users\Eric\Desktop\Source\Program\_Interface\WndPartyFinder.cpp(207): error C3861'destroy'identifier not foundeven with argument-dependent lookup 
09/23/2012 00:12 Jopsi332#22
juunge.. mach aus destroy(); : Destroy();
09/23/2012 00:52 DerJumbo#23
Quote:
Originally Posted by Jopsi332 View Post
juunge.. mach aus destroy(); : Destroy();
habe vorhin nicht gesehen das du bei destroy das D groß geschrieben hattest, sorry deswegen, geht aber jetzt also danke :D