Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 01:34

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Wiki Job SetCurSel();

Discussion on Wiki Job SetCurSel(); within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2019
Posts: 7
Received Thanks: 0
Wiki Job SetCurSel();

I was wondering about this Wiki that I leeched, so if the codes are this

Code:
	
m_pListItems = (CWndListBox*)GetDlgItem(WIDC_LISTBOX1);
	m_pComboJob = (CWndComboBox*)GetDlgItem(WIDC_COMBOBOX2);
	m_pComboKind = (CWndComboBox*)GetDlgItem(WIDC_COMBOBOX1);
	m_pEditFilter = (CWndEdit*)GetDlgItem(WIDC_EDIT1);

	int nIdx = 0;
	for( int i = 0; i < MAX_JOB; ++i )
	{
		if( i == JOB_PUPPETEER || i == JOB_DOPPLER || i == JOB_GATEKEEPER )
			continue;
		nIdx = m_pComboJob->AddString(prj.m_aJob[i].szName);
		m_pComboJob->SetItemData(nIdx,i);
		m_pComboJob->SetCurSel(0);
	}
And it says
Quote:
m_pComboJob->SetCursel(0);
Why do still do this? Don't have a scroll down..


Up
lasdra03 is offline  
Old 06/20/2019, 16:22   #2
 
elite*gold: 0
Join Date: Aug 2010
Posts: 67
Received Thanks: 42
In WndControl.cpp
Search for this function:
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
Change it to:
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
{
	int nNum = m_wndListBox.AddString( lpszString );
	CRect rect = m_wndListBox.GetWindowRect( TRUE );
	rect.bottom = rect.top + ( ( nNum + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
	if( rect.Height() > 400 )
		rect.bottom = rect.top + 400;
	m_wndListBox.SetWndRect( rect );
	return nNum;
}
Knusper02 is offline  
Thanks
1 User
Old 06/20/2019, 18:29   #3
 
elite*gold: 0
Join Date: Jun 2019
Posts: 7
Received Thanks: 0
Quote:
Originally Posted by Knusper02 View Post
In WndControl.cpp
Search for this function:
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
Change it to:
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
{
	int nNum = m_wndListBox.AddString( lpszString );
	CRect rect = m_wndListBox.GetWindowRect( TRUE );
	rect.bottom = rect.top + ( ( nNum + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
	if( rect.Height() > 400 )
		rect.bottom = rect.top + 400;
	m_wndListBox.SetWndRect( rect );
	return nNum;
}
Sweet lord! Thank you mate! It worked, I am looking around for 2 days already it been out of the codes. Thanks again!
lasdra03 is offline  
Reply


Similar Threads Similar Threads
[Private Wiki]Schnelles Wiki für alle
03/26/2015 - Metin2 PServer Advertising - 63 Replies
Heute stelle ich euch mein Projekt "Private Wiki Cloud" vor Für die, die nicht viel lesen wollen direkt einmal ein paar Beispiele: Metin2013 Private Wiki Cloud - Metin2013 Schwarzstahl-Panzer - Metin2013 Sensenmanntruhe - Metin2013 Sensenmann - Metin2013
Wiki: Bearbeitungen in der Wiki geöffnet!
11/27/2011 - Metin2 - 15 Replies
Liebe Spieler! Um euch die Benutzung der Wiki zu vereinfachen, haben wir heute die Bearbeitung für alle User geöffnet. Das heißt, ihr könnt nun die Wiki bearbeiten, ohne euch einen Account anzulegen - einfach nur auf "Bearbeiten" in der jeweiligen Seite klicken! Wir hoffen, dadurch wieder mehr User für die Wiki zu gewinnen und euch die Verwendung zu vereinfachen. :) Dazu sei aber noch gesagt: Wer glaubt, Unsinn treiben zu müssen, indem er Seiten verunstaltet oder falsche Informationen...



All times are GMT +2. The time now is 01:34.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.