Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to fix the admin create item window

Skilled Illusionist
Joined
May 11, 2011
Messages
316
Reaction score
28
How to fix the admin create item window

How can i fix this little bug?
I miss the scrollbar for the item type and the list is to long.

9GvF6FWl - How to fix the admin create item window - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Jun 11, 2010
Messages
40
Reaction score
2
When I had this problem, I tried adjusting the resolution. I know there was one setting that showed most (if not all) of the items in the list. It's not a permanent fix, but it's a temporary solution until someone can help further.
 
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830
WndControl.cpp

Find:
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;
    m_wndListBox.SetWndRect( rect );
    return nNum;
}

Replace With:
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
{
    int nNum = m_wndListBox.AddString( lpszString );
    CRect rect = m_wndListBox.GetWindowRect( TRUE );
    rect.bottom = rect.top + ( ( (nNum <= 10 ? nNum : 10) + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
    m_wndListBox.SetWndRect( rect );
    return nNum;
}
 
Back
Top